Skip to content

ci: send the Coolify redeploy as a POST with force=true [2m] - #85

Merged
Gl4dr3x merged 1 commit into
masterfrom
ci/coolify-post
Dec 2, 2026
Merged

Gl4dr3x merged 1 commit into
masterfrom
ci/coolify-post

Conversation

@Gl4dr3x

@Gl4dr3x Gl4dr3x commented Dec 2, 2026

Copy link
Copy Markdown
Collaborator

With the token back (#84), the redeploy step got past authentication and failed with 405. Coolify routes GET /api/v1/deploy to a handler that only answers "POST required"; the deploy itself is POST /api/v1/deploy (routes/api.php in coollabsio/coolify).

A second fault: the deploy webhook URL Coolify shows already ends in &force=false. Appending ?force=true sent force as false?force=true, which Coolify reads as false.

The step now:

  • sets force=true in the URL as it is, or appends it when the URL has no force parameter;
  • sends the request as a POST.

The URL handling was checked locally against the three shapes (with force=false, without force, with force=true). All three end in ?uuid=…&force=true.

Check

The merge triggers Docker Custom Build, whose last step shows whether Coolify accepts the deploy. No secret changes are needed: COOLIFY_WEBHOOK_URL stays the URL Coolify shows.

An AI agent wrote this text in my name, on my instructions.

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 <[email protected]>
@Gl4dr3x
Gl4dr3x merged commit ccc7c7d into master Dec 2, 2026
27 of 33 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant