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 <[email protected]>
This commit is contained in:
@@ -136,17 +136,15 @@ jobs:
|
|||||||
run: rm -rf "$SRC"
|
run: rm -rf "$SRC"
|
||||||
|
|
||||||
# Put the new image live, exactly as job-tracker does: pull and
|
# Put the new image live, exactly as job-tracker does: pull and
|
||||||
# recreate only this service, under the lock web_server's deploy
|
# recreate only this service, under .compose.lock, which web_server's
|
||||||
# and env-apply hold while they run compose. A pinned
|
# deploy and maintenance hold while they run compose. A pinned
|
||||||
# ACTIVITY_TRACKER_IMAGE_TAG in the site's .env makes this a no-op.
|
# ACTIVITY_TRACKER_IMAGE_TAG in the site's .env makes this a no-op.
|
||||||
- name: Roll the site onto the new image
|
- name: Roll the site onto the new image
|
||||||
working-directory: /home/adamf/deploy/web_server
|
working-directory: /home/adamf/deploy/web_server
|
||||||
env:
|
|
||||||
DOCKER_API_VERSION: "1.41"
|
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
flock env-apply/run/lock sh -c 'docker compose pull activity-tracker && docker compose up -d --no-deps activity-tracker'
|
flock .compose.lock sh -c 'docker compose pull activity-tracker && docker compose up -d --no-deps activity-tracker'
|
||||||
for i in $(seq 1 30); do
|
for i in $(seq 1 30); do
|
||||||
status=$(docker inspect -f '{{.State.Health.Status}}' activity-tracker)
|
status=$(docker inspect -f '{{.State.Health.Status}}' activity-tracker)
|
||||||
echo "activity-tracker: $status"
|
echo "activity-tracker: $status"
|
||||||
|
|||||||
Reference in New Issue
Block a user