declare packages: write so the registry login works
Docker / build (push) Failing after 17s

The first build pushed nothing: `docker login git.ffaerber.duckdns.org` came
back "unauthorized". Gitea scopes the automatic Actions token from the job's
permissions block, and without one it has no package write -- so the build
succeeded and the push failed on auth, which reads like a credential problem
rather than a missing declaration.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CYFnHida4AdiNDek2pzgXx
This commit is contained in:
Felix FaerberandClaude Opus 5 committed 2026-09-15 12:36:51 +03:00
1 parent 7534f34cfc
commit f2f3e4e3f9
1 file changed
+7
+7
View File
@@ -21,6 +21,13 @@ on:
env: env:
HOMELAB_API_URL: https://t4tgw-api.ffaerber.duckdns.org HOMELAB_API_URL: https://t4tgw-api.ffaerber.duckdns.org
# Gitea derives the automatic token's scopes from this block; without it the
# token cannot write packages and `docker login` to this instance's registry
# fails with a bare "unauthorized".
permissions:
contents: read
packages: write
jobs: jobs:
build: build:
runs-on: ci-runner runs-on: ci-runner