Build the image with BuildKit in CI
Test and publish / test (push) Successful in 32s
Test and publish / publish (push) Successful in 5m8s

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 <[email protected]>
This commit is contained in:
2026-10-14 16:51:44 +01:00
co-authored by Claude Opus 5.5
parent 33ea8a9b99
commit e6ed29d4a9
+6
View File
@@ -92,6 +92,12 @@ jobs:
SRC: /home/adamf/.cache/job-tracker-ci/publish-${{ github.sha }} SRC: /home/adamf/.cache/job-tracker-ci/publish-${{ github.sha }}
REGISTRY_USER: ${{ secrets.REGISTRY_USER }} REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_TOKEN: ${{ secrets.REGISTRY_TOKEN }} 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: steps:
- name: Build and push the image - name: Build and push the image
shell: bash shell: bash