CI: push image using a Forgejo access token
All checks were successful
build-and-push / docker (push) Successful in 15s
All checks were successful
build-and-push / docker (push) Successful in 15s
The auto GITHUB_TOKEN lacks package-write scope (push failed with unauthorized: reqPackageAccess). Use a REGISTRY_TOKEN secret (Forgejo token with write:package) and log in as the repo owner instead. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
parent
e5e1a2bfc1
commit
3a6a2143ef
1 changed files with 3 additions and 1 deletions
|
|
@ -17,7 +17,9 @@ jobs:
|
|||
uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to the Forgejo container registry
|
||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.plexultra.com -u "${{ github.actor }}" --password-stdin
|
||||
# REGISTRY_TOKEN = a Forgejo access token with write:package scope, added
|
||||
# as a repo Actions secret. The auto GITHUB_TOKEN can't push packages.
|
||||
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.plexultra.com -u "${{ github.repository_owner }}" --password-stdin
|
||||
|
||||
- name: Build and push image
|
||||
run: |
|
||||
|
|
|
|||
Loading…
Reference in a new issue