Skip to content

perf(ci): point the buildkit layer cache at ECR - #407

Merged
athvin merged 1 commit into
mainfrom
bm/ci-buildcache-flip
Nov 2, 2026
Merged

athvin merged 1 commit into
mainfrom
bm/ci-buildcache-flip

Conversation

@athvin

@athvin athvin commented Nov 2, 2026

Copy link
Copy Markdown
Owner

Workflow half of the buildcache move (#405 created the repo; the unattended apply must be green before this merges — same sequencing sccache.tf records). Both image builds cache-to type=registry,ref=…/er-buildcache:er-{api,web},mode=max,image-manifest=true,oci-mediatypes=true (ECR rejects the default cache-manifest media type without those flags). The type=gha lines survive as transitional cache-FROM only — first registry run starts warm, and the Actions-cache budget pressure ends at merge. rust.yml's cache-prune comment updated: both budgets are now rollback insurance.

Validation: the next images run on main must show importing cache manifest from …er-buildcache / exporting cache to registry and a populated er-buildcache repo.

🤖 Generated with Claude Code

The gha backend's ~5 GB mode=max cache was the largest producer in the
shared 10 GB Actions budget — the thing cache-prune exists to cap. Both
image builds now cache-to er-buildcache (terraform #405), with
image-manifest=true,oci-mediatypes=true because ECR rejects buildkit's
default cache-manifest media type. The gha line survives as a transitional
cache-FROM only, so the first registry run starts warm; cache-to stops
feeding the Actions cache immediately. cache-prune's comment now records
that both of its budgets are rollback insurance.

Co-Authored-By: Claude Fable 5 <[email protected]>
@athvin
athvin merged commit fd467d0 into main Nov 2, 2026
34 checks passed
@athvin
athvin deleted the bm/ci-buildcache-flip branch November 2, 2026 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants