debug: add diagnostic logging to Coolify deploy step
Some checks failed
CI / ci (push) Successful in 1m11s
CI / e2e (push) Has been skipped
CI / deploy (push) Failing after 7s

Logs token length, pipe presence, webhook URL, and full response
body to diagnose authentication failures in CI.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-11 00:23:06 +02:00
parent dc5499283c
commit 4cdb0f7993

View File

@@ -58,8 +58,19 @@ jobs:
COOLIFY_TOKEN: ${{ secrets.COOLIFY_TOKEN }}
COOLIFY_WEBHOOK: ${{ vars.COOLIFY_WEBHOOK }}
run: |
curl -s -X GET "${COOLIFY_WEBHOOK}" \
-H "Authorization: Bearer ${COOLIFY_TOKEN}"
echo "Token length: ${#COOLIFY_TOKEN}"
echo "Token contains pipe: $(echo "${COOLIFY_TOKEN}" | grep -c '|')"
echo "Webhook URL: ${COOLIFY_WEBHOOK}"
RESPONSE=$(curl -s -w '\n%{http_code}' -X GET "${COOLIFY_WEBHOOK}" \
-H "Authorization: Bearer ${COOLIFY_TOKEN}")
STATUS=$(echo "$RESPONSE" | tail -1)
BODY=$(echo "$RESPONSE" | sed '$d')
echo "Coolify deploy response: HTTP ${STATUS}"
echo "Response body: ${BODY}"
if [ "$STATUS" -ge 400 ]; then
echo "::error::Coolify deploy failed with HTTP ${STATUS} - ${BODY}"
exit 1
fi
e2e:
if: false # E2E tests need rewrite: auth moved from local login to OIDC (Logto). Tests still expect username/password flow.