Describe the CI host as stpvm, not the Pi
The site and its runner moved from the arm64 Pi to stpvm (x86-64, Docker 29), so the comments about the build host, its Docker version and the image architecture were wrong. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
# ci.yaml — test every push; publish an image for pushes to main that pass.
|
||||
#
|
||||
# Same runner and the same constraints as web_server's deploy.yaml: a
|
||||
# self-hosted act_runner on the Pi in HOST mode, with git and docker and no
|
||||
# self-hosted act_runner on the web_server host (stpvm) in HOST mode, with git and docker and no
|
||||
# other toolchain. So Go and Node run in `docker run` containers, and the
|
||||
# source is fetched with plain git rather than actions/checkout (which needs
|
||||
# Node on the host).
|
||||
@@ -93,9 +93,10 @@ 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
|
||||
# The Dockerfile's `RUN --mount=type=cache` lines need BuildKit.
|
||||
# It is the default from Docker 23 (the host runs 29); this was
|
||||
# needed on the Pi's Docker 20.10, whose plain `docker build` used
|
||||
# the legacy builder, and is kept for any older daemon. 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"
|
||||
@@ -107,7 +108,7 @@ jobs:
|
||||
rm -rf "$SRC" && mkdir -p "$SRC"
|
||||
git --git-dir="$CACHE" archive --format=tar "$SHA" | tar -x -C "$SRC"
|
||||
printf '%s' "$REGISTRY_TOKEN" | docker login adam-french.co.uk -u "$REGISTRY_USER" --password-stdin
|
||||
# Built natively on the Pi, so the image is arm64 — the only
|
||||
# Built natively on the host, so the image is amd64 — the only
|
||||
# platform it runs on.
|
||||
docker build -t "$IMAGE:$SHA" -t "$IMAGE:latest" "$SRC"
|
||||
docker push "$IMAGE:$SHA"
|
||||
@@ -118,7 +119,7 @@ jobs:
|
||||
shell: bash
|
||||
run: rm -rf "$SRC"
|
||||
|
||||
# Put the new image live. The runner is on the Pi, so this is the
|
||||
# Put the new image live. The runner is on the same host, so this is the
|
||||
# same `pull` + `up` you would type by hand in the site's deploy
|
||||
# directory. Only the `jobs` service is touched (--no-deps), and
|
||||
# compose recreates it only if the pulled image differs.
|
||||
|
||||
Reference in New Issue
Block a user