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 <[email protected]>
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user