Describe the CI host as stpvm, not the Pi
Test and publish the site / test (push) Successful in 1m29s
Test and publish the site / publish (push) Failing after 2s

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:
2026-10-15 17:58:03 +01:00
co-authored by Claude Opus 5.5
parent 675410729e
commit 3e2b52fdb2
2 changed files with 10 additions and 9 deletions
+7 -6
View File
@@ -1,8 +1,8 @@
# =============================================================================
# ci.yaml — test the site (site/) on every push that changes it; publish an
# image for such pushes to main that pass. Copied from job-tracker's ci.yaml,
# with the same runner and constraints: a self-hosted act_runner on the Pi in
# HOST mode, with git and docker and no other toolchain. So Go and Node run
# with the same runner and constraints: a 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).
#
@@ -100,9 +100,10 @@ jobs:
SRC: /home/adamf/.cache/usaco-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 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 BuildKit.
DOCKER_BUILDKIT: "1"
steps:
- name: Build and push the image
@@ -112,7 +113,7 @@ jobs:
rm -rf "$SRC" && mkdir -p "$SRC"
git --git-dir="$CACHE" archive --format=tar "$SHA" site | 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/site"
docker push "$IMAGE:$SHA"