ci(oci): switch OCI build cache to type=gha + per-image scope (GOV-20, GOV-21) #240
Loading…
Reference in a new issue
No description provided.
Delete branch "ci/GOV-20-bunyip-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?
Switches both image build workflows (build-api.yml, build-web.yml) from the type=registry
:buildcachecache to act_runner's built-in type=gha Actions cache server, per GOV-20. A rawdocker buildx builddoes not auto-inject the gha backend env and ACTIONS_RUNTIME_TOKEN is masked from run: steps, so a new step uses crazy-max/ghaction-github-runtime@v3 to re-export ACTIONS_CACHE_URL / ACTIONS_RUNTIME_TOKEN into GITHUB_ENV (needs the runner's cache.enabled: true).Because type=gha caches per repo and bunyip builds two images, each build sets scope=($image) (bunyip-api, bunyip-web) so the images get isolated cache namespaces instead of overwriting each other's layers, per GOV-21. mode=max keeps the dependency-build layer and ignore-error keeps a cache hiccup or disabled runner cache from failing the build.
Validation: both YAML files parse;
just pre-commitpassed (build + clippy + fmt + tests green).#GOV-20
#GOV-21