690619:1033 240 #01
This commit is contained in:
@@ -100,4 +100,4 @@ jobs:
|
|||||||
|
|
||||||
./scripts/deploy.sh
|
./scripts/deploy.sh
|
||||||
REMOTE_EOF
|
REMOTE_EOF
|
||||||
timeout-minutes: 20
|
timeout-minutes: 30
|
||||||
|
|||||||
+9
-1
@@ -51,7 +51,15 @@ echo "✓ Images built"
|
|||||||
|
|
||||||
# [2/3] Start / restart stack with new images
|
# [2/3] Start / restart stack with new images
|
||||||
echo "[2/3] Starting application stack..."
|
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"
|
echo "✓ Stack started"
|
||||||
|
|
||||||
# [3/3] Health check
|
# [3/3] Health check
|
||||||
|
|||||||
Reference in New Issue
Block a user