Skip to content

Commit a30d7aa

Browse files
committed
fix: send GitHub-style webhook payload to trigger Dokploy deploy
The Dokploy webhook endpoint requires x-github-event header and a JSON body with the branch ref to match against the configured deploy branch.
1 parent 9e35771 commit a30d7aa

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ jobs:
3333
steps:
3434
- name: Trigger Dokploy deploy
3535
run: |
36-
status=$(curl -s -L -o /dev/null -w "%{http_code}" \
37-
-X POST "${{ secrets.DOKPLOY_DEPLOY_WEBHOOK }}")
36+
status=$(curl -s -o /dev/null -w "%{http_code}" \
37+
-X POST "${{ secrets.DOKPLOY_DEPLOY_WEBHOOK }}" \
38+
-H "Content-Type: application/json" \
39+
-H "x-github-event: push" \
40+
-d '{"ref":"refs/heads/main"}')
3841
echo "Webhook responded: $status"
3942
[ "$status" -ge 200 ] && [ "$status" -lt 300 ]

0 commit comments

Comments
 (0)