fix(ci): force fresh build on web deploy
Some checks failed
CI / Lint (push) Has been cancelled
CI / Typecheck (push) Has been cancelled
CI / Broker tests (Postgres) (push) Has been cancelled
CI / Docker build (linux/amd64) (push) Has been cancelled

Coolify's last deploy reused the cached image — the new
/api/cli/meshes/[slug] route never made it into .next/server.
Adding force=true to the deploy API call so Coolify rebuilds
from the current commit instead of replaying the cache.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Alejandro Gutiérrez
2026-05-03 14:17:22 +01:00
parent b69df75f0c
commit 79485898cf

View File

@@ -59,7 +59,7 @@ jobs:
exit 1 exit 1
fi fi
response=$(curl -sS -w "\n%{http_code}" -X GET \ response=$(curl -sS -w "\n%{http_code}" -X GET \
"http://100.122.34.28:8000/api/v1/deploy?uuid=${APP_UUID}" \ "http://100.122.34.28:8000/api/v1/deploy?uuid=${APP_UUID}&force=true" \
-H "Authorization: Bearer ${COOLIFY_TOKEN}") -H "Authorization: Bearer ${COOLIFY_TOKEN}")
status=$(echo "$response" | tail -n1) status=$(echo "$response" | tail -n1)
body=$(echo "$response" | sed '$d') body=$(echo "$response" | sed '$d')