Skip to content

Listens for github webhook, validates secret and runs a script

License

Notifications You must be signed in to change notification settings

Duke-GCB/hook-build

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hook-build

Listens for github webhook, validates secret and runs a script

Requires

nodejs and npm

Setup

npm install

Create a script to perform an action on each added file when a it sees a push to master with a particular message. See sample_script.sh

Run

sudo KEYPATH=<PATH_TO_SSL_KEY> CERTPATH=<PATH_TO_SSL_CERT> MESSAGE_REGEX='<commit pattern> GITHUB_KEY=<SOMEKEY> ON_RELEASE_CMD=<SCRIPTTORUN> node index.js 

About

Listens for github webhook, validates secret and runs a script

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published