Skip to content

ci: add Docker buildx GHA layer cache to build workflows#289

Merged
chorrell merged 1 commit into
mainfrom
ci/buildx-gha-cache
May 26, 2026
Merged

ci: add Docker buildx GHA layer cache to build workflows#289
chorrell merged 1 commit into
mainfrom
ci/buildx-gha-cache

Conversation

@chorrell
Copy link
Copy Markdown
Owner

Adds cache-from: type=gha / cache-to: type=gha,mode=max (scoped per platform) to all docker/build-push-action calls in both build workflows.

In update-current-image.yml, the push step now reuses layers warmed by the preceding test-image step. For the current FROM scratch Dockerfile this saves minimal time, but it correctly establishes the caching pattern for future Dockerfile changes.

Note: this PR is stacked on top of #288 (ci/multi-arch-manifest). Merge that one first, then rebase this branch onto main before merging.

Base automatically changed from ci/multi-arch-manifest to main May 26, 2026 03:16
Caches Docker build layers in GitHub Actions cache (type=gha) scoped
per platform. The second build-push-action call in the update workflow
(push step) now reuses layers warmed by the test-image step, making
the push build effectively free for this scratch-based image and
future-proofing for any Dockerfile growth.
@chorrell chorrell force-pushed the ci/buildx-gha-cache branch from d17a86a to b1d990a Compare May 26, 2026 03:18
@chorrell chorrell merged commit b8aa762 into main May 26, 2026
5 of 10 checks passed
@chorrell chorrell deleted the ci/buildx-gha-cache branch May 26, 2026 03:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant