fix(demo): use REGISTRY_TOKEN for Gitea package registry login
build-and-push / docker (push) Failing after 20s
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:
@@ -20,12 +20,14 @@ jobs:
|
|||||||
id: meta
|
id: meta
|
||||||
run: echo "tag=${GITHUB_SHA::8}" >> "$GITHUB_OUTPUT"
|
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
|
- name: Login to Gitea container registry
|
||||||
uses: docker/login-action@v3
|
uses: docker/login-action@v3
|
||||||
with:
|
with:
|
||||||
registry: ${{ env.REGISTRY }}
|
registry: ${{ env.REGISTRY }}
|
||||||
username: ${{ github.actor }}
|
username: ${{ github.repository_owner }}
|
||||||
password: ${{ secrets.GITHUB_TOKEN }}
|
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push
|
- name: Build and push
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
|
|||||||
Reference in New Issue
Block a user