fix(demo): use REGISTRY_TOKEN for Gitea package registry login
build-and-push / docker (push) Failing after 20s

GITHUB_TOKEN cannot auth to /v2/; PAT with write:package is required.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
aayalew
2026-07-10 17:52:26 +03:00
parent b7d4db6ae8
commit 4b7c158eac
+4 -2
View File
@@ -20,12 +20,14 @@ jobs:
id: meta
run: echo "tag=${GITHUB_SHA::8}" >> "$GITHUB_OUTPUT"
# GITHUB_TOKEN cannot authenticate to Gitea's /v2/ registry; use a PAT
# with write:package stored as repo secret REGISTRY_TOKEN.
- name: Login to Gitea container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
username: ${{ github.repository_owner }}
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push
uses: docker/build-push-action@v6