Skip to content

moonagic/WebhookExample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WebhookExample

利用Github的Webhook功能进行持续集成

  • index.js已废弃.
  • index2.js需要配置的内容:
// 在Webhooks中设定的secret
var secret = ''
// 在Webhooks中设定的Payload URL
var url = ''
...
// 监听地址端口
}).listen(6606, '127.0.0.1');

开启服务

npm install
node index2.js

简单的systemd启动服务

[Unit]
Description=GithubWebhookService

[Service]
WorkingDirectory=/home/webhook
ExecStart=/usr/bin/node path/to/index2.js

[Install]
WantedBy=multi-user.target

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published