CI: use REGISTRY_TOKEN secret for registry login
The auto Actions token can't push packages in this Gitea; use a PAT secret. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -34,13 +34,10 @@ jobs:
|
|||||||
runs-on: docker
|
runs-on: docker
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
# Auth to the Gitea container registry. The auto-provisioned job token
|
# The auto-provisioned Actions token cannot push packages in this Gitea,
|
||||||
# works for the repo owner's package namespace in the common config; if a
|
# so use a PAT (write:package) stored as the REGISTRY_TOKEN repo secret.
|
||||||
# run ever fails here with a permissions error, add a repo Actions secret
|
|
||||||
# REGISTRY_TOKEN (a PAT with write:package) and swap secrets.GITHUB_TOKEN
|
|
||||||
# for secrets.REGISTRY_TOKEN below.
|
|
||||||
- name: Log in to registry
|
- name: Log in to registry
|
||||||
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login git.jpaul.io -u "${{ github.actor }}" --password-stdin
|
run: echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.jpaul.io -u "${{ github.actor }}" --password-stdin
|
||||||
- name: Build + push
|
- name: Build + push
|
||||||
run: |
|
run: |
|
||||||
docker build -t "$IMAGE:latest" -t "$IMAGE:${{ github.sha }}" .
|
docker build -t "$IMAGE:latest" -t "$IMAGE:${{ github.sha }}" .
|
||||||
|
|||||||
Reference in New Issue
Block a user