Publish one image tag per job #5
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?
Makes the image push actually work, and quiets the login while at it.
The cause. Podman's Docker-compatible API carries exactly one push call per
job: the first succeeds, every later one fails with
Error response from daemon:and no message at all. Pushing three tags therefore published oneimage and failed twice — and the failure looked like an authentication problem
when it never was one.
Confirmed by probing rather than guessing: a single push always succeeded, a
second push of the same image never did, and re-authenticating in between
changed nothing.
--all-tagsis a single call, but it resolves the repositoryname without a tag and is no help either.
The fix. One tag per job. The build job publishes
latest, a second jobpublishes the commit tag. The image is already in the daemon's storage by then,
so nothing is rebuilt. Proven in run 28: both jobs green, both tags published.
Also here.
docker loginprints a three-line warning about storing thecredential unencrypted on every run — noise in a container whose filesystem is
discarded. The output is captured and only printed when the login actually
fails, so a bad token still fails the step loudly.
Two leftovers from probing are worth deleting by hand: the
ci-probe-aandci-probe-btags on the package, and the throwaway packagewifipooltomqtt-citest.