Fix Dokploy deploy trigger: send push-event payload

The deploy endpoint silently no-ops on a bare POST; it needs the
x-github-event header and a ref to match the configured branch.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-06-05 00:20:23 -04:00
parent 9ee2a3c39b
commit 17e2a8ecd1
+7 -1
View File
@@ -27,6 +27,12 @@ jobs:
concurrency: deploy-group
steps:
- name: Trigger Dokploy deploy
run: curl -fsS -X POST "$DOKPLOY_DEPLOY_URL"
# Dokploy's deploy endpoint expects a GitHub-style push event;
# a bare POST returns 200 but deploys nothing.
run: |
curl -fsS -X POST "$DOKPLOY_DEPLOY_URL" \
-H 'Content-Type: application/json' \
-H 'x-github-event: push' \
-d "{\"ref\":\"refs/heads/${GITHUB_REF_NAME}\"}"
env:
DOKPLOY_DEPLOY_URL: ${{ secrets.DOKPLOY_DEPLOY_URL }}