From 8ad42fbc31069db1e14ff302be79ad19b4cc1ad4 Mon Sep 17 00:00:00 2001 From: Alexander Kreitner <180843591+Gl4dr3x@users.noreply.github.com> Date: Wed, 2 Dec 2026 16:17:35 +0100 Subject: [PATCH] ci: send the Coolify redeploy as a POST with force=true Coolify's /api/v1/deploy takes a deploy as a POST only and answers a GET with 405, which the redeploy step got once its token was back. The deploy webhook URL Coolify shows already carries force=false, so appending ?force=true sent force as "false?force=true". The step now sets force=true in the URL as it is and posts it. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/docker-custom.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-custom.yml b/.github/workflows/docker-custom.yml index 20486327c389..f0248fcff45f 100644 --- a/.github/workflows/docker-custom.yml +++ b/.github/workflows/docker-custom.yml @@ -59,6 +59,14 @@ jobs: COOLIFY_WEBHOOK_URL: ${{ secrets.COOLIFY_WEBHOOK_URL }} COOLIFY_API_TOKEN: ${{ secrets.COOLIFY_WEBHOOK_APITOKEN }} run: | - curl --silent --fail --show-error -X GET \ + # The URL is Coolify's deploy webhook, ?uuid=...&force=false. Coolify + # takes the deploy as a POST only; force=true rebuilds without cache. + url="${COOLIFY_WEBHOOK_URL//force=false/force=true}" + case "$url" in + *force=true*) ;; + *\?*) url="${url}&force=true" ;; + *) url="${url}?force=true" ;; + esac + curl --silent --fail --show-error -X POST \ -H "Authorization: Bearer ${COOLIFY_API_TOKEN}" \ - "${COOLIFY_WEBHOOK_URL}?force=true" + "$url"