ci(oci): switch build cache from registry to runner gha cache (VS-53) #73
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/VS-53-oci-cache-gha"
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?
The build-oci-image workflow exported a mode=max buildx cache to dev.a8n.run via type=registry. The ~1.7 GiB cache round-tripped over the WAN on every build; on a 20 Mbps-upload runner the push takes ~12 min and the registry proxy closes the connection with 499 (VS-52), so cache reuse never worked there even after PR #72 made the export non-fatal.
Point the cache at act_runner's built-in Actions cache server instead. cache-from and cache-to now use type=gha (keeping mode=max for the Rust dependency layers and ignore-error=true as defense-in-depth), and the unused cache_ref registry computation is removed so no vervain-server:buildcache tag is written. A crazy-max/ghaction-github-runtime step exports ACTIONS_CACHE_URL and ACTIONS_RUNTIME_TOKEN into the job env, which a manual docker buildx build (unlike docker/build-push-action) needs to reach the cache server and which ACTIONS_RUNTIME_TOKEN is otherwise hidden from run: steps for.
#VS-53
ci(oci): switch build cache from registry to runner gha cacheto ci(oci): switch build cache from registry to runner gha cache (VS-53)