From 3ef09d44b72a1ba746299f5f90a0ea599cae7635 Mon Sep 17 00:00:00 2001 From: GitHub Actions Date: Sat, 24 Jan 2026 22:58:59 +0000 Subject: [PATCH] fix(ci): increase container health timeout for Debian image Debian-based image takes longer to start than Alpine due to: - Larger base image - gosu and CrowdSec built from source - Additional package dependencies Increase timeout from 120s to 180s to accommodate slower startup. --- .github/workflows/docker-build.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index c2098acc..9f9e156e 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -476,9 +476,9 @@ jobs: -p 80:80 \ ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.tag.outputs.tag }} - # Wait for container to be healthy (max 2 minutes) + # Wait for container to be healthy (max 3 minutes - Debian needs more startup time) echo "Waiting for container to start..." - timeout 120s bash -c 'until docker exec test-container curl -q -O- http://localhost:8080/api/v1/health 2>/dev/null | grep -q "status"; do echo "Waiting..."; sleep 2; done' || { + timeout 180s bash -c 'until docker exec test-container curl -q -O- http://localhost:8080/api/v1/health 2>/dev/null | grep -q "status"; do echo "Waiting..."; sleep 2; done' || { echo "❌ Container failed to become healthy" docker logs test-container exit 1