github-webhook
📡 Overview
The Github-webhook is a webhook tool on github,
That can trigger bash scripts after monitoring git's push behavior
The a line command handles the automatic build
github-webhook 是github webhook自动构建工具.能监听git push行为,自动触发脚本.
一条命令搞定webhook自动构建,无需复杂的配置.
📜 Usage
1. Install
go get -u github.com/yezihack/github-webhook
2. Download
Release
cp ~/github-webhook /usr/bin
chmod u+x /usr/bin/github-webhook
3. Command
- Daemonize run:
nohup go-webhook --bash /home/my.sh --secret mysecret -q &
后台运行
- Monitor run:
go-webhook --bash /home/my.sh --secret mysecret
- Quiet mode run:
go-webhook --bash /home/my.sh --secret mysecret --quiet
- Custom port mode run:
go-webhook --bash /home/my.sh --secret mysecret --port 6100 --quiet
- Hidden secret mode run:
go-webhook --bash /home/my.sh --quiet
4. WebHook
- Default port: 2020
- Http path: /web-hook
- Test URL:
http://ip:2020/ping
- WebHook URL:
http://ip:2020/web-hook
💌 Features
- Just run the binaries file
- Custom your bash script
- Custom your enter secret
- Custom your port. 0 ~ 65535
- Quiet operation
中文
- 直接运行二进制文件
- 自定义脚本路径
- 自定义密码
- 自定义端口. 0 ~ 65535
- 安静模式
GLOBAL OPTIONS:
--bash value, -b value Execute the script path. eg: /home/hook.sh
--port value, -p value http port (default: 6666)
--secret value, -s value github hook secret
--quiet, -q quiet operation (default: false)
--help, -h show help (default: false)
--version, -v print the version (default: false)
中文
GLOBAL OPTIONS:
--bash value, -b value Execute the script path. eg: /home/hook.sh 自定义脚本
--port value, -p value http port (default: 6666) 自定义端口,默认6666
--secret value, -s value github hook secret 自定义密码, 不允许为空
--quiet, -q quiet operation (default: false) 安静模式,默认关闭. -q 开启,不输出任何信息
--help, -h show help (default: false)
--version, -v print the version (default: false)
HOW DOING

👋 Thanks