This repository was archived by the owner on Jul 1, 2026. It is now read-only.
ci: pull base images from the ECR public mirror - #4
Merged
Conversation
Docker Hub org access tokens (OATs) are scoped to the org's repos, so once buildx is authenticated with the OAT it can't pull public base images (docker.io/library/python -> 401 'access token has insufficient scopes'), breaking the release build. Pull the python base from public.ecr.aws/docker/library (anonymous, byte-identical mirror, no Docker Hub auth) — matching RIDI's monorepo convention. Push to ridi/ministack still uses the OAT. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
The release build (
ridi-docker-publish.yml, tag1.3.65-ridi.1) failed at the base-image pull:Docker Hub organization access tokens (OATs) are scoped to the org's repositories, so once buildx is logged in with the OAT it can't authorize a pull of a public base image (
library/python). (A personal token can; an OAT can't.)Change
Pull the
pythonbase images from the ECR public mirror —public.ecr.aws/docker/library/python:{3.12-alpine,3.12-slim}(Dockerfile+Dockerfile.full). Anonymous, byte-identical to Docker Hub's official images, and not subject to the OAT. This is RIDI's monorepo convention. The push toridi/ministackstill uses the OAT.Verified the regular image builds locally from the new base.