Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Github Integration for Deployer

Turn github webhooks into deployments. This is a deployer integration.

More documentation and packaging to come.

Requirements

which python
python -c 'import http_parser'
python -c 'import simplejson'
which deploy

Configuration

sudo cp ./etc/deployer-github.example.conf /etc/deployer-github.conf
sudo $EDITOR /etc/deployer-github.conf

Usage: Standalone Server

sudo tcpserver -v 0.0.0.0 80 \
  setuidgid deployer \
    sh -c '. /etc/deployer-github.conf && exec "$0" "$@"' \
      deployer-github -- deploy

This assumes you also have ucspi-tcp and daemontools installed, and a privsep unix user named deployer.

Usage: Behind Nginx

unixserver -v /var/lib/deployer-github/server.sock -- \
  setuidgid deployer \
    sh -c '. /etc/deployer-github.conf && exec "$0" "$@"' \
      deployer-github -- deploy

This 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;
}

About

Turn github webhooks into deployments.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages