Repository navigation
CI: mirror base images to GHCR, pinned by digest (step 1 of 2) - #203
Merged
Merged
Conversation
…inned by digest A Docker Hub outage (502s from auth.docker.io) failed #194's journeys and images jobs. This workflow copies the images CI pulls to GitHub's registry with crane, keeping their digests; a follow-up points CI at the copies.
…nest comment, no sleep after the last retry
ndbroadbent
force-pushed
the
ci/mirror-base-images
branch
from
December 4, 2026 11:16
7821049 to
a13ce8e
Compare
This was referenced Dec 4, 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.
Step 1 of 2 in taking Docker Hub out of CI's critical path. Docker Hub returned 502s from auth.docker.io and failed #194's journeys and images jobs.
.github/mirror.txtlists every image CI pulls from Docker Hub, pinned by digest: postgres:17 (services), rustfs (S3 for tests), rust:1.99.1-trixie (the release-bins container and the Dockerfiles), node:24-trixie-slim and debian:trixie-slim (the Dockerfiles), amazon/aws-cli (scripts/ci/visual.sh), and moby/buildkit (setup-buildx)..github/workflows/mirror.ymlcopies each image withcrane copytoghcr.io/docspring/mirror/<name>:<tag>. It retries Docker Hub errors with backoff and fails unless the copy has the expected digest. It runs on main when the list changes, weekly to repair a deleted copy, and by hand. Only main writes the mirror. crane comes from Google's release, checksum verified, with no third-party action.crane copycopies the whole multi-platform index, soghcr.io/docspring/mirror/postgres@sha256:97fb…is byte for byte the same image aspostgres@sha256:97fb…on Docker Hub.Step 2, a follow-up PR once this has run on main: point ci.yml's services and containers, the
docker runlines, the Dockerfiles'FROMlines and setup-buildx's BuildKit image at the mirror by digest, and retry the remaining pulls.Talira search: nothing listed fits better than GitHub's own registry (search 01a240ab-3a06-24da-d4cc-1af2783308b7). Self-hosted registries and pull-through caches (Harbor, zot, Quay, Distribution, Artifactory) would be a new thing to run, for runners that are already on GitHub.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.