一个基于 Golang 开发的用于迅速搭建并使用 WebHook 进行自动化部署和运维系统,支持:Github / GitLab / GitOsc。
界面和开发思路参考于 git-webhook 。
在原作者的基础上解耦了WebHook和Server之间关系,实现了多对多关系。
因与服务器通信使用的是SSH方式,请注意保管服务器账号和密码。
1、拉取源码
git pull github.com/lifei6671/go-git-webhook
2、编译源码
go build main.go
3、运行
chmod 0777 go-git-webhook
#恢复数据库,请提前创建一个空的数据库
./go-git-webhook orm syncdb webhook
#创建管理员账户
./go-git-webhook install -account=admin -password=123456 [email protected]
go-git-webhook 基于beego框架1.7.2版本开发。编译于golang 1.8版本。使用glide作为包管理工具。
如发现 BUG 请在issue中反馈。