ci: read registry token from FJ_TOKEN
Forgejo no longer allows creating secrets prefixed FORGEJO_, so the regenerated registry token (the old one got 401 reqPackageAccess on push) has to live under a new name. Assisted-by: Claude:opus-5
This commit is contained in:
parent
bdb3682e18
commit
7820f138f6
2 changed files with 2 additions and 2 deletions
|
|
@ -66,7 +66,7 @@ jobs:
|
|||
|
||||
# Auth Conf
|
||||
mkdir -p /kaniko/.docker
|
||||
echo "{\"auths\":{\"${{ secrets.FORGEJO_REGISTRY }}\":{\"auth\":\"$(echo -n ${{ secrets.FORGEJO_USER }}:${{ secrets.FORGEJO_TOKEN }} | base64)\"}}}" > /kaniko/.docker/config.json
|
||||
echo "{\"auths\":{\"${{ secrets.FORGEJO_REGISTRY }}\":{\"auth\":\"$(echo -n ${{ secrets.FORGEJO_USER }}:${{ secrets.FJ_TOKEN }} | base64)\"}}}" > /kaniko/.docker/config.json
|
||||
|
||||
# Build & push
|
||||
/kaniko/executor \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue