##what for
this tool allow you run a script after a git push(github).
git push ---> github --github webhooks--> your server
##how to install
if you already have go installed, run: go get -u github.com/zx9597446/ghbot
or you can download binary from gobuild.io: wget gobuild.io/github.com/zx9597446/ghbot/master/linux/amd64 -O output.zip
##setup
install this tool on your server.
prepare your update script, for example: update.sh(git pull, build, etc)
run: ghbot -e update.sh -s "something secret"
on github project page, go to 'settings' -> 'webhooks & services' -> 'add webhook':
Payload URL: http://yourserverip:9527
Secret:
"something secret" (same as step 3)
try git push on this project.
##usage
Usage of ghbot:
-e="": script to execute
-p=9527: port to listen
-s="": github secret