Use a real PAT (REGISTRY_TOKEN) for registry login, not the auto GITEA_TOKEN
build-agent / build-and-push (push) Successful in 36s

This commit is contained in:
2026-08-23 11:05:19 +00:00
parent 5f804baea9
commit 32be57fe30
+4 -1
View File
@@ -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