diff --git a/.gitea/workflows/deploy-placeholder.yml b/.gitea/workflows/deploy-placeholder.yml index 312fb5f..38198b8 100644 --- a/.gitea/workflows/deploy-placeholder.yml +++ b/.gitea/workflows/deploy-placeholder.yml @@ -89,11 +89,15 @@ jobs: run: | set -e echo "Confirming the placeholder is live on www.cameleer.io..." - BODY=$(curl -sf https://www.cameleer.io/) + # Cache-bust per run so Cloudflare's edge can't serve a stale response + # that masks a failed deploy. ?cb=$GITHUB_RUN_ID forces a fresh cache key; + # the no-cache request header tells any well-behaved cache to revalidate. + CB="$GITHUB_RUN_ID" + BODY=$(curl -sf -H 'Cache-Control: no-cache' "https://www.cameleer.io/?cb=$CB") echo "$BODY" | grep -qF 'Routes are remapping' \ || { echo "Sentinel string missing — placeholder did not land."; exit 1; } echo "$BODY" | grep -qF 'mailto:' \ || { echo "mailto: link missing — sales email substitution may have failed."; exit 1; } - curl -sfI https://www.cameleer.io/cameleer-logo.png > /dev/null \ + curl -sfI -H 'Cache-Control: no-cache' "https://www.cameleer.io/cameleer-logo.png?cb=$CB" > /dev/null \ || { echo "cameleer-logo.png not reachable on the live origin."; exit 1; } echo "Placeholder is live."