Skip to content

Publish images through GHCR and the image mirror - #272

Merged
samcm merged 1 commit into
masterfrom
image-mirror
Nov 23, 2026
Merged

samcm merged 1 commit into
masterfrom
image-mirror

Conversation

@samcm

@samcm samcm commented Nov 21, 2026 •

Copy link
Copy Markdown
Member

Releases no longer need a Docker Hub token.

  • The release job moves from the self-hosted runners (self-hosted-ghr, size-l-x64) to ubuntu-latest. Nothing in the build steps needs the self-hosted runner.
  • Goreleaser pushes to ghcr.io/ethpandaops/checkpointz with the job's own GITHUB_TOKEN.
  • An Attest images step in the release job attests the pushed digests. A separate mirror job then asks the image mirror to copy exactly those digests to docker.io/ethpandaops/checkpointz, and only goes green once they're on Docker Hub. If the mirror fails, "Re-run failed jobs" retries only the mirror and never rebuilds the images.
  • build-dev.yaml (labelled PR builds and manual dispatches) now pushes to GHCR too, then attests the pushed digest and mirrors its two tags in the same job.
  • The Docker Hub image names and tags are unchanged, for both releases and dev builds.

Heads-up, not changed here: build-dev.yaml publishes images tagged with the PR branch name. It runs on pull_request (not pull_request_target), only for same-repo branches with the build-docker-image label, and refuses master/latest/version-like tags, so that's unchanged; just flagging it.

Once a release has gone through, the repo's DOCKERHUB_USERNAME and DOCKERHUB_TOKEN secrets can be removed. Nothing in this repo uses them after this PR.

Same approach as ethpandaops/ethereum-address-metrics-exporter#70 and ethpandaops/ethereum-address-metrics-exporter#71, which went through end to end on real releases. Needs the IMAGE_MIRROR_URL organization secret, which is already in place.

@redpanda-reviewer redpanda-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Moves both workflows to push to ghcr.io/ethpandaops/checkpointz and delegate Docker Hub publishing to the image mirror: the release job now runs on ubuntu-latest, attests goreleaser's pushed digests, and a separate mirror-only job copies exactly those digests; build-dev also pushes to GHCR then attests and mirrors its two tags. I traced the release flow against the pinned ethpandaops/actions/mirror-image source and goreleaser's dockers_v2 artifact emission (type/name/extra.Digest all match the action's artifacts filter, and artifacts.json is written after publishing), and the dev flow's env/tag/digest plumbing; I found no functional problem.


Reviewed 3 changed file(s) @ ff99ffbc — no blocking issues found.
"Beware of bugs in the above code; I have only proved it correct, not tried it." — Donald Knuth

@samcm
samcm merged commit 1bc7850 into master Nov 23, 2026
7 of 12 checks passed
@samcm
samcm deleted the image-mirror branch November 23, 2026 02:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant