Quiet the registry login and confirm the push works #4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "ci/quiet-login"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Two things, both about the registry push.
Quiet login.
docker loginprints a three-line warning about storing thecredential unencrypted on every single run. In a job container whose filesystem
is discarded afterwards that is noise. The output is now captured and only
printed when the login actually fails, so a bad token still fails the step
loudly.
The push itself. Run 19 on main failed with a bare
Error response from daemon:— Podman does not relay the registry's reason. An instrumented run onthis branch, allowed to push its own commit tag, went through cleanly, so the
push works with the token as it stands now. The instrumentation is removed
again in the second commit.
The most likely explanation for run 19 is the token scope:
docker loginsucceeds against Forgejo with any valid token, and only the push needs
write:package. That cannot be confirmed after the fact from here, and mergingthis settles it either way — main pushes all three tags.
One small fix carried over: without a git tag
git describefalls back to thecommit, so the version tag and the commit tag were the same upload twice. It is
now skipped when they match.