Use built-in GITHUB_TOKEN for Gitea registry login
Build & Deploy / build (push) Failing after 3s
Build & Deploy / deploy (push) Has been skipped

Avoids needing to configure REGISTRY_USER / REGISTRY_PASSWORD secrets.
Gitea injects a per-run token scoped to the repo's own packages.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
rlabadmin
2026-04-23 14:25:03 +02:00
parent 48a3d3f3f5
commit 3545d8a6f0
+2 -2
View File
@@ -42,9 +42,9 @@ jobs:
- name: Log in to Gitea registry - name: Log in to Gitea registry
run: | run: |
echo "${{ secrets.REGISTRY_PASSWORD }}" | \ echo "${{ secrets.GITHUB_TOKEN }}" | \
docker login ${{ env.REGISTRY }} \ docker login ${{ env.REGISTRY }} \
--username ${{ secrets.REGISTRY_USER }} \ --username "${{ github.actor }}" \
--password-stdin --password-stdin
- name: Build image - name: Build image