fix(ci): use REGISTRY_TOKEN PAT secret for registry login

Gitea's auto GITHUB_TOKEN lacks the package scope needed to push to the container registry, causing the login step to fail. Switch the login password to a PAT stored as the REGISTRY_TOKEN repo Actions secret (scopes: write:package, read:package).
This commit is contained in:
2026-07-29 17:07:00 -04:00
parent e7c4c931ee
commit 3c9e4d8126
+2 -1
View File
@@ -27,7 +27,8 @@ jobs:
with: with:
registry: git.linuxhg.com registry: git.linuxhg.com
username: ${{ gitea.actor }} username: ${{ gitea.actor }}
password: ${{ secrets.GITHUB_TOKEN }} # PAT stored as a repo Actions secret (auto GITHUB_TOKEN lacks package scope in Gitea)
password: ${{ secrets.REGISTRY_TOKEN }}
- name: Build and push image - name: Build and push image
uses: docker/build-push-action@v5 uses: docker/build-push-action@v5