fix(ci): skip cache-to on tag builds (MAPPS-121) #45
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/oci-cache-skip-tag-builds-MAPPS-121"
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?
Summary
Skip
--cache-toon tag builds in.forgejo/workflows/build-oci-image.ymlso the redundantmode=maxcache export no longer fires after every tag push. Tag builds run against a commit that was already built on main, so the registry cache is already populated; the second export only re-uploads identical blobs, and those large PUTs todev.a8n.runwere timing out at the reverse proxy (returning 499) - the symptom tracked in MAPPS-121.cache-fromstays unconditional, so tag builds still benefit from cache reuse.Details
$env.GITHUB_REF | str starts-with "refs/tags/".--cache-to).mode=max,ignore-error=true).nu 0.112.2.Test plan
v0.2.1) and confirm the build logs showTag build: skipping cache-to ...and noerror writing layer blob ... 499lines in the export step.mainand confirm cache-to still runs (exporting cache to registryappears, cache layers refresh).dev.a8n.run/psa-systems-private/mokosh-www:<tag>.