fix: pass PAT secrets (REGISTRY_USER/REGISTRY_TOKEN) to template

gitea.token cannot push packages; use a PAT with package scope.

Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
sittichok Ouamsiri
2026-06-13 23:37:55 +07:00
co-authored by Claude Opus 4.8
parent aef31fed51
commit d1d70250ec
+3 -2
View File
@@ -12,10 +12,11 @@ permissions:
jobs: jobs:
trigger-internal-build: trigger-internal-build:
uses: infras/workflow-templates/.gitea/workflows/docker-template.yml@1745732456bdd9bd41bbec4bb4cf9cff08f650fe uses: infras/workflow-templates/.gitea/workflows/docker-template.yml@47684a2ffa498f4101557efc3acf1ae8a354178f
with: with:
image_name: 'simple-http-server' image_name: 'simple-http-server'
image_owner: thistine image_owner: thistine
image_tag: ${{ gitea.ref_name }} image_tag: ${{ gitea.ref_name }}
secrets: secrets:
REGISTRY_TOKEN: ${{ gitea.token }} REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}