Skip to content

Commit 58102c8

Browse files
committed
ci: allow GHCR release token fallback
1 parent c7fc5a2 commit 58102c8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ jobs:
8484
- uses: docker/login-action@v3
8585
with:
8686
registry: ghcr.io
87-
username: ${{ github.actor }}
88-
password: ${{ github.token }}
87+
username: ${{ secrets.GHCR_USERNAME || github.actor }}
88+
password: ${{ secrets.GHCR_PAT || github.token }}
8989

9090
- name: Build and push ${{ matrix.platform }} image by digest
9191
id: build_image
@@ -140,8 +140,8 @@ jobs:
140140
- uses: docker/login-action@v3
141141
with:
142142
registry: ghcr.io
143-
username: ${{ github.actor }}
144-
password: ${{ github.token }}
143+
username: ${{ secrets.GHCR_USERNAME || github.actor }}
144+
password: ${{ secrets.GHCR_PAT || github.token }}
145145

146146
- name: Download image digests
147147
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)