From e6ed29d4a9f4c2400790196de7fa637a0be5ef9e Mon Sep 17 00:00:00 2001 From: Adam French Date: Wed, 14 Oct 2026 16:51:44 +0100 Subject: [PATCH] Build the image with BuildKit in CI The Pi runs Docker 20.10, whose plain docker build uses the legacy builder and fails on the Dockerfile's RUN --mount cache lines. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index eeaae74..9a46316 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -92,6 +92,12 @@ jobs: SRC: /home/adamf/.cache/job-tracker-ci/publish-${{ github.sha }} REGISTRY_USER: ${{ secrets.REGISTRY_USER }} REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }} + # The Pi's Docker is 20.10, where plain `docker build` still uses + # the legacy builder, and that rejects the Dockerfile's + # `RUN --mount=type=cache` lines. This switches on the BuildKit + # built into the daemon. (Compose builds through buildx, which is + # why web_server's images build without it.) + DOCKER_BUILDKIT: "1" steps: - name: Build and push the image shell: bash