690619:1033 240 #01
CI / CD Pipeline / build (push) Successful in 6m59s
CI / CD Pipeline / deploy (push) Successful in 2m39s

This commit is contained in:
2026-06-19 10:33:28 +07:00
parent 135f4d1171
commit 3130a358ab
2 changed files with 10 additions and 2 deletions
+9 -1
View File
@@ -51,7 +51,15 @@ echo "✓ Images built"
# [2/3] Start / restart stack with new images
echo "[2/3] Starting application stack..."
docker compose --env-file "$ENV_FILE" -f "$COMPOSE_FILE" up -d --force-recreate
# Check if clamav is already healthy to avoid 5-minute healthcheck delay
if docker ps --filter "name=clamav" --filter "status=running" --format "{{.Status}}" 2>/dev/null | grep -q "healthy"; then
echo " ClamAV already healthy, skipping recreation"
docker compose --env-file "$ENV_FILE" -f "$COMPOSE_FILE" up -d --force-recreate backend frontend
else
echo " ClamAV not healthy or not running, recreating full stack"
docker compose --env-file "$ENV_FILE" -f "$COMPOSE_FILE" up -d --force-recreate
fi
echo "✓ Stack started"
# [3/3] Health check