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:
1 parent
4dbf8a78c2
commit
d6fc2477f3
1 file changed
+7
@@ -11,6 +11,13 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
# 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:
|
||||||
# The homelab runner (a container on pluto, sharing the host docker daemon).
|
# The homelab runner (a container on pluto, sharing the host docker daemon).
|
||||||
|
|||||||
Reference in new issue
Block a user