ci: add arm64 build cache and self-hosted runner cleanup#9
Merged
Conversation
- Registry-based build cache for arm64 QEMU cross-compilation - Cleanup steps on both jobs to prevent garbage accumulation - Remove temp ci-build image after amd64 push - Prune buildx cache and dangling images older than 72h Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Force Docker V2 media types (oci-mediatypes=false), disable SBOM attestations, and use gzip compression to avoid DockerHub rejecting large layer blobs from buildx. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
mode=max tries to push all layers (including multi-GB CUDA base) as cache, triggering DockerHub 400 errors. mode=min only caches final image layers. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
The successful arm64 builds on Mar 16 had no registry cache. Removing cache-from/cache-to to verify the image push works without cache interference. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Registry cache (type=registry) triggers DockerHub 400 errors on large CUDA layers. GHA cache (type=gha) stores build cache in GitHub's blob storage, avoiding DockerHub entirely. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Registry cache triggers DockerHub 400 errors (buildx#271). Local cache on the self-hosted runner avoids network roundtrips entirely. - BuildKit GC capped at 20GB via maxUsedSpace - Cache rotated after each build to prevent unbounded growth - buildx prune --keep-storage 20g as safety net Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
buildcache-arm64tag on DockerHub, pulls on subsequent runs. Should cut the ~26min QEMU cross-compilation time significantly.Test plan
🤖 Generated with Claude Code