Skip to content

fix(deploy): trigger Dokploy through the compose webhook - #128

Merged
an1ndra merged 3 commits into
mainfrom
Develop
Dec 4, 2026
Merged

an1ndra merged 3 commits into
mainfrom
Develop

Conversation

@an1ndra

@an1ndra an1ndra commented Dec 4, 2026

Copy link
Copy Markdown
Owner

The Deploy workflow has been red on every tag since Cloudflare started challenging POST /api/compose.deploy for GitHub-hosted runner IPs (403 + "Just a moment" page).

This switches to the per-compose webhook URL (DOKPLOY_WEBHOOK_URL) and sends the GitHub push envelope Dokploy expects: X-GitHub-Event: push, ref: refs/heads/main, head_commit. Dokploy only reads a branch when that header is present and rejects a tag ref, so a tag deploy targets main, where the tag commit lives.

Verified with workflow_dispatch: the step now returns 200 and Dokploy queues the compose deploy.

The Cloudflare challenge in front of /api/compose.deploy answers a GitHub-hosted
runner with 403 and a JS challenge page, so every tag left the Deploy workflow red.
Use the per-compose webhook URL (DOKPLOY_WEBHOOK_URL) instead: that is the path
GitHub's own deliveries already reach.
Cloudflare's bot challenge keys on curl's default UA; a named agent is easier to
allow or skip narrowly if the rule is ever needed.
Dokploy reads the branch only when X-GitHub-Event is present, and rejects a ref
that is not the compose branch. A tag deploy therefore asks for refs/heads/main,
where the tag commit lives. Verified: the webhook answers 200 and queues the
compose deploy.
@github-actions

github-actions Bot commented Dec 4, 2026

Copy link
Copy Markdown

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@an1ndra
an1ndra merged commit d94ff27 into main Dec 4, 2026
15 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