From 17e2a8ecd117b644268b18aa96c4145ebdef0099 Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Fri, 5 Jun 2026 00:20:23 -0400 Subject: [PATCH] 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) --- .github/workflows/deploy.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0475b62..01a9894 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 }}