build-push: hoist REGISTRY_TOKEN to job env (diagnostic)

This commit is contained in:
Emi Griffith 2026-08-01 11:12:41 -07:00
parent d6553a7a05
commit ca003d60d9

View file

@ -49,6 +49,7 @@ jobs:
env: env:
REGISTRY: https://${{ vars.REGISTRY_HOST }} REGISTRY: https://${{ vars.REGISTRY_HOST }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v4
@ -110,8 +111,6 @@ jobs:
- name: Log in to the Forgejo registry - name: Log in to the Forgejo registry
if: steps.image.outputs.changed == 'true' if: steps.image.outputs.changed == 'true'
env:
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }}
run: | run: |
# NOT secrets.GITHUB_TOKEN -- Forgejo's per-job auto-injected token can # NOT secrets.GITHUB_TOKEN -- Forgejo's per-job auto-injected token can
# never push to the container registry (a known Forgejo limitation, # never push to the container registry (a known Forgejo limitation,