Continuous deployment with GitHub Webhooks
- Clone this repository into
/usr/local/bin/webhook-deploy
- Generate a secret token with
python -c 'import secrets; print(secrets.token_hex(32))'
and paste it in a file namedsecret.txt
- Create the directory
/var/log/webhook-deployments
for storing logs - Put your deployment scripts in the directory
deployment-scripts
- Configure your deployments in
config.yml
- Enable and start the systemd service:
cp webhook-deploy.service /etc/systemd/system/ systemctl daemon-reload systemctl enable webhook-deploy.service systemctl start webhook-deploy.service