Use a real PAT (REGISTRY_TOKEN) for registry login, not the auto GITEA_TOKEN
build-agent / build-and-push (push) Successful in 36s
build-agent / build-and-push (push) Successful in 36s
This commit is contained in:
@@ -19,8 +19,11 @@ jobs:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Log in to Gitea registry
|
||||
# The auto-generated secrets.GITEA_TOKEN doesn't work against the registry's
|
||||
# /v2/ auth endpoint regardless of permissions granted (known Gitea limitation);
|
||||
# a real personal access token stored as REGISTRY_TOKEN is required instead.
|
||||
run: |
|
||||
echo "${{ secrets.GITEA_TOKEN }}" | docker login "${{ vars.REGISTRY_HOST }}" \
|
||||
echo "${{ secrets.REGISTRY_TOKEN }}" | docker login "${{ vars.REGISTRY_HOST }}" \
|
||||
-u "${{ gitea.actor }}" --password-stdin
|
||||
|
||||
- name: Build and push claude-agent image
|
||||
|
||||
Reference in New Issue
Block a user