ci(oci): switch OCI build cache to type=gha (GOV-20) #60
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/GOV-20-rusty-links-gha-build-cache"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Migrates this single-image repo's OCI build cache from the registry backend to act_runner's built-in Actions cache server, matching the GOV-20 governance template migration.
Changes:
type=registry,ref=...:buildcache(both--cache-fromand--cache-to) withtype=gha/type=gha,mode=max,ignore-error=true. The registry backend round-tripped ~1.7 GiB over the WAN every build and 499'd the export on slow-upload runners, so cache reuse never worked there.Export Actions runtime env for buildx gha cachestep (crazy-max/ghaction-github-runtime@v3) right after the buildx builder setup. A rawdocker buildx build(unlike docker/build-push-action) does not auto-inject the gha backend env, and ACTIONS_RUNTIME_TOKEN is masked from run: steps, so this re-exports ACTIONS_CACHE_URL / ACTIONS_RUNTIME_TOKEN into GITHUB_ENV. Requires the runner's cache server (cache.enabled: true).The repo already uses the docker-container buildx driver, so no driver change is needed. The provenance-attestation comment in the verify step is unchanged.
#GOV-20