From df24e893119444d3b4a066834f04c4e94c7af2ba Mon Sep 17 00:00:00 2001 From: Eric Gullickson <16152721+ericgullickson@users.noreply.github.com> Date: Wed, 4 Feb 2026 19:40:47 -0600 Subject: [PATCH] chore: update deploy timings --- .gitea/workflows/production.yaml | 8 +++----- .gitea/workflows/staging.yaml | 8 +++----- docker-compose.yml | 2 +- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.gitea/workflows/production.yaml b/.gitea/workflows/production.yaml index 9fe29b8..3f7d563 100644 --- a/.gitea/workflows/production.yaml +++ b/.gitea/workflows/production.yaml @@ -278,14 +278,12 @@ jobs: if [ "$health" = "healthy" ]; then echo "OK: $service is healthy" break - elif [ "$health" = "unhealthy" ]; then - echo "ERROR: $service is unhealthy" - docker logs $service --tail 50 2>/dev/null || true - exit 1 fi + # Don't fail immediately on unhealthy - container may still be starting up + # and can recover. Let the timeout handle truly broken containers. if [ $i -eq 48 ]; then echo "ERROR: $service health check timed out (status: $health)" - docker logs $service --tail 50 2>/dev/null || true + docker logs $service --tail 100 2>/dev/null || true exit 1 fi echo "Waiting for $service healthcheck... (attempt $i/48, status: $health)" diff --git a/.gitea/workflows/staging.yaml b/.gitea/workflows/staging.yaml index 34c4bd6..2a793b3 100644 --- a/.gitea/workflows/staging.yaml +++ b/.gitea/workflows/staging.yaml @@ -211,14 +211,12 @@ jobs: if [ "$health" = "healthy" ]; then echo "OK: $service is healthy" break - elif [ "$health" = "unhealthy" ]; then - echo "ERROR: $service is unhealthy" - docker logs $service --tail 50 2>/dev/null || true - exit 1 fi + # Don't fail immediately on unhealthy - container may still be starting up + # and can recover. Let the timeout handle truly broken containers. if [ $i -eq 48 ]; then echo "ERROR: $service health check timed out (status: $health)" - docker logs $service --tail 50 2>/dev/null || true + docker logs $service --tail 100 2>/dev/null || true exit 1 fi echo "Waiting for $service healthcheck... (attempt $i/48, status: $health)" diff --git a/docker-compose.yml b/docker-compose.yml index e21158d..9be6de6 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -151,7 +151,7 @@ services: interval: 5s timeout: 5s retries: 5 - start_period: 90s + start_period: 180s labels: - "traefik.enable=true" - "traefik.docker.network=motovaultpro_backend"