Wait for API health separately from the projection worker
Docker test deployment / test-build-deploy (push) Successful in 3m7s

This commit is contained in:
2026-09-16 04:04:45 +08:00
parent e20133a177
commit 51d5a06cd7
+2 -1
View File
@@ -63,7 +63,8 @@ if docker container inspect adcloud-server-test >/dev/null 2>&1; then
docker stop --time 20 adcloud-server-test >/dev/null
legacy_stopped=true
fi
docker compose -f compose.yml up -d --wait --wait-timeout 180 api worker
docker compose -f compose.yml up -d --wait --wait-timeout 180 api
docker compose -f compose.yml up -d worker
docker compose -f compose.yml --profile checks run --rm smoke
# Verify the published host port too; config stays read-only in this probe.
docker run --rm --network host --volume "$CONFIG_VOLUME:/config:ro" --entrypoint python "$DEPLOY_IMAGE" /app/scripts/smoke_api.py --base-url "http://127.0.0.1:$DEPLOY_PORT" --require-projection