From 6eb35e9df27fe3157a7a772a9a79e2351f6b49d8 Mon Sep 17 00:00:00 2001 From: Frederic Cabassut Date: Sun, 22 Mar 2026 00:28:48 +0100 Subject: [PATCH] perf: add BuildX + GHA caching to CI docker validation build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI only needs to verify the Dockerfile builds on amd64 — multi-arch is handled by the release workflow with native ARM runners. Switching from bare `docker build` to BuildX with GHA layer caching speeds up subsequent builds significantly. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/ci.yml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2e9580d..e7fa1b7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -121,5 +121,15 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build Docker image - run: docker build -t crumbs:ci . + uses: docker/build-push-action@v6 + with: + context: . + push: false + provenance: false + tags: crumbs:ci + cache-from: type=gha,scope=ci-docker + cache-to: type=gha,scope=ci-docker,mode=max