moonagic / GoWebhook

github webhook service written by go.

Home Page:https://moonagic.com/make-webhook-backend-with-golang/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GoWebhooks

一个使用Go编写的Github webhook接收处理服务.
Go Report Card
用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

简单的systemd启动服务

[Unit]
Description=gowebhook service
After=network.target

[Service]
Type=simple
ExecStart=/usr/local/bin/gowebhook

[Install]
WantedBy=multi-user.target

About

github webhook service written by go.

https://moonagic.com/make-webhook-backend-with-golang/

License:MIT License


Languages

Language:Go 97.8%Language:Batchfile 1.2%Language:Shell 1.0%