ci(oci): switch build cache from type=registry to type=gha #47
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/vapp-36-oci-gha-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?
Switch
.forgejo/workflows/build-oci-image.ymlfrom the registry build-cache pattern (a dedicated:buildcachetag withtype=registrycache_from/cache_to) totype=gha, pointing buildx at act_runner's built-in on-LAN Actions cache server. The registry pattern round-tripped the full ~1.7 GiB buildx cache over the WAN every build and 499'd the export on slow-upload runners, so layer reuse never worked. This replicates the governance GOV-20 fix, first proven on vervain-server in VS-53.Changes:
crazy-max/ghaction-github-runtime@v3step after the buildx-builder setup. A rawdocker buildx build(unlike docker/build-push-action) does not auto-inject the gha cache backend's env, andACTIONS_RUNTIME_TOKENis masked fromrun:steps, so the action re-exportsACTIONS_CACHE_URL/ACTIONS_RUNTIME_TOKENintoGITHUB_ENV. Requires the runner'scache.enabled: true.cache_from = "type=gha"andcache_to = "type=gha,mode=max,ignore-error=true", dropping the unused:buildcachecache-ref computation.type=registrycomments on the buildx-driver and cache lines.No
scope=is added: this repo builds a single image (vervain-web), so the GOV-21 multi-image isolation knob does not apply.just pre-commitpasses (fmt, clippy, check, wasm check, 21 tests).Closes VAPP-36.