一个使用Go编写的Github webhook接收处理服务.
用Golang重写Github webhook后台服务
# vi /etc/gowebhook/config.yml
host: 127.0.0.1
port: 6606
servers:
- identifier: dsijubhdfgbgfdnghf2
secret: oHryZnDM8gXHfpqj
script: /etc/gowebhook/auto_build.sh
requestUrl: /auto_build
- identifier: dsijubhdfgbgfdnghf
secret: oHryZnDM8gXHfpqj1
script: /etc/gowebhook/auto_build.sh
requestUrl: /auto_build
[Unit]
Description=gowebhook service
After=network.target
[Service]
Type=simple
ExecStart=/usr/local/bin/gowebhook
[Install]
WantedBy=multi-user.target