1.1 KiB
1.1 KiB
Push-to-Deploy: Gitea → Dokploy flow
Flow summary:
- Developer pushes commit to
main. - Gitea sends a push webhook to Dokploy (
https://system.cloudarix.de/api/deploy/compose/JXSdfeHdc6wBKUEiJrX_9). - Dokploy validates the webhook (signature if configured) and enqueues a compose deployment job.
- Dokploy clones the repository (using
REPO_DEPLOY_KEYsecret) and readsdocker-compose.ymlat repo root. - Dokploy runs the compose deployment, streams logs, and performs configured healthchecks.
- Dokploy marks the run
successorfailedand retains logs for troubleshooting.
Payload expectations:
refshould indicate branch (e.g.,refs/heads/main).commitsarray includes latest commit withid(SHA) andmessage.- Dokploy should record
commit_shafor traceability.
Acceptance criteria for push-to-deploy (US1):
- A push to
mainstarts a Dokploy run within 30s (SC-001). - The run uses
docker-compose.ymlat repo root and deploys the commit referenced in the webhook. - Duplicate webhook deliveries for the same commit do not start duplicate active deployments.