git clone https://github.com/nickstenning/dokku-webhooks.git /var/lib/dokku/plugins/webhooks mv /var/lib/dokku/plugins/git/receive-app /var/lib/dokku/plugins/git/receive-app.bak
The second step is necessary because this plugin replaces the default
receive-app hook. If you don't use the default git
receive-app hook then you
will need to modify the last lines of
receive-app in this plugin accordingly.
Add a webhook:
dokku webhooks:add https://example.com/my/webhook
Remove a webhook:
dokku webhooks:remove https://example.com/my/webhook
List all installed webhooks:
Each webhook endpoint is sent an HTTP POST request with a standard
application/x-www-form-urlencoded POST payload, the contents of which depend
on which stage of deployment has been reached.
All hook requests contain the following POST params:
||The deployment stage.|
||The FQDN of the dokku host.|
||The dokku app being deployed.|
Other hook requests contain additional data, as detailed below.
This hook is triggered at the very start of a deployment, when dokku starts receiving data pushed to git.
||The git revision being deployed.|
||The git revision currently deployed, or
This hook is triggered at the very end of a successful deployment.
||The internal IP on which the app is listening.|
||The internal port on which the app is listening.|
||The public URL of the deployed app.|
This free software is released under the MIT license, a copy of which can be