Repository navigation
ci: send the Coolify redeploy as a POST with force=true [2m] - #85
Merged
Merged
Conversation
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]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
With the token back (#84), the redeploy step got past authentication and failed with 405. Coolify routes
GET /api/v1/deployto a handler that only answers "POST required"; the deploy itself isPOST /api/v1/deploy(routes/api.phpin coollabsio/coolify).A second fault: the deploy webhook URL Coolify shows already ends in
&force=false. Appending?force=truesent force asfalse?force=true, which Coolify reads as false.The step now:
force=truein the URL as it is, or appends it when the URL has no force parameter;The URL handling was checked locally against the three shapes (with
force=false, without force, withforce=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_URLstays the URL Coolify shows.An AI agent wrote this text in my name, on my instructions.