ghbot

command module
v0.0.0-...-c9a0120 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 3, 2014 License: MIT Imports: 10 Imported by: 0

README

ghbot

##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

  1. install this tool on your server.
  2. prepare your update script, for example: update.sh(git pull, build, etc)
  3. run:
    ghbot -e update.sh -s "something secret"
  4. on github project page, go to 'settings' -> 'webhooks & services' -> 'add webhook':
    Payload URL:
    http://yourserverip:9527
    Secret:
    "something secret" (same as step 3)
  5. try git push on this project.

##usage Usage of ghbot:
-e="": script to execute
-p=9527: port to listen
-s="": github secret

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL