Skip to content

ci: add GHA layer cache to push job#94

Merged
chorrell merged 1 commit into
mainfrom
ci/add-gha-layer-caching
May 26, 2026
Merged

ci: add GHA layer cache to push job#94
chorrell merged 1 commit into
mainfrom
ci/add-gha-layer-caching

Conversation

@chorrell
Copy link
Copy Markdown
Owner

Adds cache-from: type=gha and cache-to: type=gha,mode=max to the Build and push step. The push job already has docker/setup-buildx-action so no additional setup is required.

On repeat pushes to main, unchanged layers will be restored from the GHA cache instead of rebuilt from scratch, reducing build time significantly.

Note: per-platform scoped caching for the test job is introduced separately alongside the arm64 matrix (PR #TODO).

@chorrell chorrell merged commit dbfd0f0 into main May 26, 2026
2 checks passed
@chorrell chorrell deleted the ci/add-gha-layer-caching branch May 26, 2026 04:06
chorrell added a commit that referenced this pull request May 26, 2026
Expands the `test` job to run in parallel for both `linux/amd64` and
`linux/arm64` using a matrix strategy. QEMU and Buildx are added to
support cross-architecture builds on the amd64 runner.

- `fail-fast: false` ensures both platforms are always reported even if
one fails
- GHA cache is scoped per-platform (`scope=linux/amd64` /
`scope=linux/arm64`) so each platform maintains its own cache entry
- The `Test` step passes `--platform` to `docker run` to exercise the
correct architecture via QEMU

Note: if merged alongside #94, the push job's unscoped cache and the
test job's scoped cache will coexist without conflict.
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