ci: authenticate GHCR releases with package token

This commit is contained in:
zxyszx
2026-08-03 20:12:57 +08:00
parent 9a489992ed
commit 1350611908
+2 -2
View File
@@ -136,8 +136,8 @@ jobs:
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ github.repository_owner }}
password: ${{ secrets.GHCR_TOKEN || secrets.GITHUB_TOKEN }}
- name: Prepare image name
id: image