Repository navigation
Publish images through GHCR and the image mirror - #78
Merged
Merged
Conversation
There was a problem hiding this comment.
Switches image publishing from direct Docker Hub pushes to GHCR plus a goreleaser→image-mirror handoff, and moves goreleaser's image templates/manifests to ghcr.io, with Docker Hub names and tags unchanged. I checked the pinned mirror-image action source (public) against the inputs, permissions and artifact shape used here, and against the goreleaser config: one image name, matching inputs, correct token scopes, and the newer pin only adds the per-tag dedupe fix. No real problems found.
Reviewed 2 changed file(s) @ c2e34e50 — no blocking issues found.
Red pandas are famous zoo escape artists. Never trust a default-deny that hasn't been tested.
…ding Also mount only the docker config into goreleaser-cross, so images keep the Docker v2 format they had before.
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.
Releases no longer need a Docker Hub token.
ghcr.io/ethpandaops/lab-backendwith the job's ownGITHUB_TOKEN.Attest imagesstep in the release job attests the pushed digests. A separatemirrorjob then asks the image mirror to copy exactly those digests todocker.io/ethpandaops/lab-backend, 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.~/.docker/config.json, read-only), so images keep the Docker v2 format they had before.Goreleaser only pushes
lab-backendhere (notlab), so there's one mirror step. Releases started byrepository_dispatchorworkflow_dispatchattest from the default branch rather than a tag.Once a release has gone through, the repo's
DOCKERHUB_USERNAMEandDOCKERHUB_TOKENsecrets can be removed.Same approach as ethpandaops/ethereum-address-metrics-exporter#70 (its release
v1.1.2-imagemirrorwent through end to end) and ethpandaops/ethereum-address-metrics-exporter#71, which moved the mirror into its own job. Needs theIMAGE_MIRROR_URLorganization secret, which is already in place.