From 03a30732633b6a397d0e3ecc9a2700103d92fda8 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Mon, 13 Apr 2026 22:37:02 +0200 Subject: [PATCH] fix(ci): add cache-buster to health check to avoid varnish staleness --- .gitea/workflows/deploy.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index efec5709..b0f31f78 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -496,11 +496,11 @@ jobs: curl -sf "$DEPLOY_URL/health" || { echo "❌ Basic health check failed"; exit 1; } echo "✅ Basic health OK" echo "Checking CMS DB connectivity..." - RESPONSE_HEADERS=$(curl -sfI "$DEPLOY_URL/api/health/cms?gk_bypass=$GK_PASS" 2>&1) - RESPONSE=$(curl -sf "$DEPLOY_URL/api/health/cms?gk_bypass=$GK_PASS" 2>&1) || { + RESPONSE_HEADERS=$(curl -sfI "$DEPLOY_URL/api/health/cms?gk_bypass=$GK_PASS&cb=$(date +%s)" 2>&1) + RESPONSE=$(curl -sf "$DEPLOY_URL/api/health/cms?gk_bypass=$GK_PASS&cb=$(date +%s)" 2>&1) || { echo "❌ CMS health check failed!" echo "--- RESPONSE HEADERS ---" - curl -sI "$DEPLOY_URL/api/health/cms?gk_bypass=$GK_PASS" + curl -sI "$DEPLOY_URL/api/health/cms?gk_bypass=$GK_PASS&cb=$(date +%s)" echo "--- RESPONSE BODY ---" echo "$RESPONSE" echo ""