Skip to content

Commit a5c36cb

Browse files
committed
ci: use WORKFLOW_SECRET for GHCR login and build-push-action to increase rate limits
1 parent 521bcb2 commit a5c36cb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/docker.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ jobs:
311311
with:
312312
registry: ghcr.io
313313
username: ${{ github.repository_owner }}
314-
password: ${{ secrets.GITHUB_TOKEN }}
314+
password: ${{ secrets.WORKFLOW_SECRET || secrets.GITHUB_TOKEN }}
315315

316316
- name: "⚠️ Check Registry Login Status"
317317
if: steps.variant-filter.outputs.skip != 'true'
@@ -379,7 +379,7 @@ jobs:
379379
with:
380380
context: ${{ matrix.context }}
381381
secrets: |
382-
GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }}
382+
GITHUB_TOKEN=${{ secrets.WORKFLOW_SECRET || secrets.GITHUB_TOKEN }}
383383
build-args: |
384384
BUILDTIME=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.created'] }}
385385
VERSION=${{ fromJSON(steps.meta.outputs.json).labels['org.opencontainers.image.version'] }}

0 commit comments

Comments
 (0)