Repository navigation
Pull the CodeBuild image from a ghcr.io copy before ECR Public - #5
Merged
Merged
Conversation
Anonymous ECR Public pulls come from the runners' shared IPs and fail with "toomanyrequests: Data limit exceeded" once an IP has used its monthly quota (2 of the last 8 jobs), which retries on the same runner cannot fix. Pull a copy from this organization's GitHub registry first, authenticated with the job token; when it is missing, pull from ECR Public as before and push the copy for later runs. Claude-Session: https://claude.ai/code/session_01DZfDmzUBPqNAu3yFKyfCNM
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.
The last push run on
masterfailed before LocalStack started (run):LocalStack runs every CodeBuild build in
public.ecr.aws/codebuild/amazonlinux-x86_64-standard:5.0, and the job pulls it anonymously. Anonymous ECR Public pulls are capped per IP per month, and GitHub's runners share IPs, so a job that lands on a capped IP fails all 5 retries. That happened in 2 of the last 8 jobs.The pull step now:
GITHUB_TOKENand pullsghcr.io/localstack-samples/codebuild-amazonlinux-x86_64-standard:5.0, then tags it with the ECR Public name LocalStack expects.The job gets
packages: writefor the push. The package is created private and linked to this repository, so it serves as a CI cache rather than a public redistribution of the AWS image. Deleting the package refreshes the copy on the next run.