Push slim image by digest via regctl#32
Merged
richturner merged 1 commit intomainfrom May 7, 2026
Merged
Conversation
Replace the buildx-passthrough push (which can't push docker-daemon images by digest) with `docker save` -> `regctl image import` -> `regctl image copy` to a digest URL, leaving no per-arch tag in the registry. regctl is installed via the upstream `regclient/actions/regctl-installer` action, with `sigstore/cosign-installer` first so the binary's sigstore signature is verified. The push step retries transiently failing copies, asserts the registry credential persisted post-login, and cleans up the staged tar/OCI layout via `trap`. `Dockerfile.passthrough` existed only as the buildx workaround and is removed.
richturner
approved these changes
May 7, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docker save→regctl image import→regctl image copy <repo>@<digest>flow, so the slim image still lands in the registry without ever creating a per-arch tag.regctlis installed via the upstreamregclient/actions/regctl-installeraction, pinned tov0.11.3.sigstore/cosign-installerruns first so the action's opportunisticcosign verify-blobagainst the regclient sigstore signature actually fires (the action silently skips verification if cosign isn't onPATH).regctl image copy3× with backoff on transient registry errors, assert thatregctl registry loginpersisted the credential before staging the tar, andtrapthe tar + OCI layout cleanup so a mid-step failure doesn't leave hundreds of MB on the runner for a re-run to ENOSPC on.Dockerfile.passthrough. Its only purpose was the buildx workaround; nothing else in the repo references it.PR CI doesn't exercise the slim push (gated on non-PR events); first real run is post-merge on
main. Rollback is a single-commit revert of the merge commit.