Turn github webhooks into deployments. This is a deployer integration.
More documentation and packaging to come.
which python
python -c 'import http_parser'
python -c 'import simplejson'
which deploysudo cp ./etc/deployer-github.example.conf /etc/deployer-github.conf
sudo $EDITOR /etc/deployer-github.confsudo tcpserver -v 0.0.0.0 80 \
setuidgid deployer \
sh -c '. /etc/deployer-github.conf && exec "$0" "$@"' \
deployer-github -- deployThis assumes you also have ucspi-tcp and daemontools installed, and a privsep unix user named deployer.
unixserver -v /var/lib/deployer-github/server.sock -- \
setuidgid deployer \
sh -c '. /etc/deployer-github.conf && exec "$0" "$@"' \
deployer-github -- deployThis assumes you also have ucspi-unix installed, and a privsep unix user named deployer.
Relevant nginx snippet:
location ~ ^/github/webhooks(/|$) {
proxy_pass http://unix:/var/lib/deployer-github/server.sock;
}