Skip to content

Commit b7ee8fc

Browse files
committed
fixed github token
1 parent 19a1eb8 commit b7ee8fc

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/ghcr-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ on:
1717
required: true
1818

1919
secrets:
20-
GITHUB_TOKEN:
20+
GH_TOKEN:
2121
description: 'Your github access token'
2222
required: true
2323

@@ -26,6 +26,8 @@ env:
2626

2727
jobs:
2828
build-and-push-image:
29+
name: Push Docker image (${{ inputs.image_name }})
30+
2931
runs-on: ubuntu-24.04
3032

3133
permissions:
@@ -35,14 +37,15 @@ jobs:
3537
id-token: write
3638

3739
steps:
40+
3841
- name: Checkout repository
3942
uses: actions/checkout@v4
4043
- name: Log in to the Container registry
4144
uses: docker/login-action@65b78e6e13532edd9afa3aa52ac7964289d1a9c1
4245
with:
4346
registry: ${{ env.REGISTRY }}
4447
username: ${{ github.actor }}
45-
password: ${{ secrets.GITHUB_TOKEN }}
48+
password: ${{ secrets.GH_TOKEN }}
4649

4750
- name: Extract metadata (tags, labels) for Docker
4851
id: meta

.github/workflows/test-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
uses: ./.github/workflows/ghcr-publish.yml
3333
secrets:
34-
GITHUB_TOKEN:: ${{ secrets.GITHUB_TOKEN }}
34+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3535
with:
3636
image_name: 'qproxy'
3737
context: './proxy'
@@ -69,7 +69,7 @@ jobs:
6969

7070
uses: ./.github/workflows/ghcr-publish.yml
7171
secrets:
72-
GITHUB_TOKEN:: ${{ secrets.GITHUB_TOKEN }}
72+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7373
with:
7474
image_name: 'qdb'
7575
context: './server/database'
@@ -106,7 +106,7 @@ jobs:
106106

107107
uses: ./.github/workflows/ghcr-publish.yml
108108
secrets:
109-
GITHUB_TOKEN:: ${{ secrets.GITHUB_TOKEN }}
109+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
110110
with:
111111
image_name: 'qJobsServer'
112112
context: './server'
@@ -142,7 +142,7 @@ jobs:
142142

143143
uses: ./.github/workflows/ghcr-publish.yml
144144
secrets:
145-
GITHUB_TOKEN:: ${{ secrets.GITHUB_TOKEN }}
145+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
146146
with:
147147
image_name: 'qApi'
148148
context: './server'
@@ -178,7 +178,7 @@ jobs:
178178

179179
uses: ./.github/workflows/ghcr-publish.yml
180180
secrets:
181-
GITHUB_TOKEN:: ${{ secrets.GITHUB_TOKEN }}
181+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
182182
with:
183183
image_name: 'qWorker'
184184
context: './server/worker'

0 commit comments

Comments
 (0)