mirror of
https://github.com/kennethreitz/kjvstudy.org.git
synced 2026-06-05 23:00:16 +00:00
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:
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user