add workflow to mirror cog-base images from r8.im to GHCR#2871
Merged
markphelps merged 1 commit intomainfrom Mar 26, 2026
Merged
add workflow to mirror cog-base images from r8.im to GHCR#2871markphelps merged 1 commit intomainfrom
markphelps merged 1 commit intomainfrom
Conversation
Add a workflow_dispatch workflow that copies cog-base images from r8.im to ghcr.io/replicate/cog/cog-base using crane. Uses GITHUB_TOKEN for GHCR authentication. The list of tags to mirror is in integration-tests/cog-base-tags.txt (4 CPU + 6 GPU base images used by integration tests). Run this workflow from Actions > Mirror cog-base images > Run workflow when new cog-base images are published or new tags are added.
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.
Summary
Add a
workflow_dispatchworkflow to mirror cog-base images fromr8.imtoghcr.io/replicate/cog/cog-base.This is part 1 of 2 — a follow-up PR (#2866) will update CI and integration tests to resolve cog-base images from GHCR instead of r8.im.
Files
.github/workflows/mirror-cog-base-images.yamlcraneandGITHUB_TOKENintegration-tests/cog-base-tags.txtUsage
After merging, run the workflow from Actions → Mirror cog-base images → Run workflow to populate GHCR.
Why
Integration tests call
cog buildwhich resolves cog-base images fromr8.im. Whenr8.imis unreachable, tests fail. By mirroring to GHCR, CI can resolve base images from a reliable source.