From f0e10d2a58305d4917ea855a9c8ef459ad3103c6 Mon Sep 17 00:00:00 2001 From: Adam French Date: Thu, 15 Oct 2026 18:07:36 +0100 Subject: [PATCH] Roll out under .compose.lock and drop the Docker API pin env-apply was removed from web_server, so its run/lock no longer exists and the roll-out step failed with "cannot open lock file". Take .compose.lock, which web_server's deploy and maintenance workflows hold. The DOCKER_API_VERSION=1.41 pin was for the Pi's Docker 20.10; the host now runs Docker 29. Co-Authored-By: Claude Opus 5.5 --- .gitea/workflows/ci.yaml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index f231f5c..f3a3f9d 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -125,18 +125,16 @@ jobs: run: rm -rf "$SRC" # Put the new image live, exactly as job-tracker's workflow does - # for `jobs`: pull + up of the one service, under the lock that - # web_server's deploy.yaml and env-apply hold, then wait for the + # for `jobs`: pull + up of the one service, under .compose.lock, which + # web_server's deploy.yaml and maintenance.yaml hold, then wait for the # image's HEALTHCHECK (process up, repository cloned and indexed). # Pinning USACO_IMAGE_TAG in the site's .env makes this a no-op. - name: Roll the site onto the new image working-directory: /home/adamf/deploy/web_server - env: - DOCKER_API_VERSION: "1.41" shell: bash run: | set -eu - flock env-apply/run/lock sh -c 'docker compose pull usaco && docker compose up -d --no-deps usaco' + flock .compose.lock sh -c 'docker compose pull usaco && docker compose up -d --no-deps usaco' for i in $(seq 1 30); do status=$(docker inspect -f '{{.State.Health.Status}}' usaco) echo "usaco: $status"