From 82499400f028ca75215c55296050e2d2c16a3fbd Mon Sep 17 00:00:00 2001 From: ATF Agent Date: Thu, 5 Nov 2026 20:26:02 +0000 Subject: [PATCH] fix(cd): remote_deploy.sh never deployed the worker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pull / teardown / up / health-verify service lists all read 'redis logger core api web' — the Go Worker was in none of them, so every CD run since the worker joined the stack reported full success while silently leaving the previously-running worker container (or a locally built one) in place. That is how the worker drifted to a pre-#339 build while the other four services were at the merge tip. The worker is added to all four lists. It has an image: mapping in docker-compose.ghcr.yml and publishes on every Publish run, so CD now pulls, restarts, and health-verifies it exactly like the other services. --- scripts/remote_deploy.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/remote_deploy.sh b/scripts/remote_deploy.sh index 2c0d5619..b1b74b43 100755 --- a/scripts/remote_deploy.sh +++ b/scripts/remote_deploy.sh @@ -125,12 +125,12 @@ ATF_IMAGE_TAG="$ATF_IMAGE_TAG" ATF_GHCR_OWNER="$ATF_GHCR_OWNER" docker compose \ --env-file "$ENV_FILE" \ -f docker-compose.yml \ -f docker-compose.ghcr.yml \ - pull --quiet redis logger core api web + pull --quiet redis logger core api web worker # 6. Clean container teardown ("همیشه داکر قبلی رو بخوابونه جدید و تمیز بیاد") echo "== cleanly stopping and removing previous application containers ==" -docker stop -t 15 atf-web atf-api atf-core atf-logger 2>/dev/null || true -docker rm -f atf-web atf-api atf-core atf-logger 2>/dev/null || true +docker stop -t 15 atf-web atf-api atf-core atf-logger atf-worker 2>/dev/null || true +docker rm -f atf-web atf-api atf-core atf-logger atf-worker 2>/dev/null || true # 7. Start fresh stack echo "== launching clean containers ==" @@ -139,11 +139,11 @@ ATF_IMAGE_TAG="$ATF_IMAGE_TAG" ATF_GHCR_OWNER="$ATF_GHCR_OWNER" docker compose \ --env-file "$ENV_FILE" \ -f docker-compose.yml \ -f docker-compose.ghcr.yml \ - up -d --remove-orphans redis logger core api web + up -d --remove-orphans redis logger core api web worker # 8. Verify container health echo "== verifying container health (timeout: ${HEALTH_TIMEOUT}s) ==" -SERVICES=(redis logger core api web) +SERVICES=(redis logger core api web worker) deadline=$((SECONDS + HEALTH_TIMEOUT)) while [ "$SECONDS" -lt "$deadline" ]; do all_ok=1