Duke-GCB/hook-build

Name: hook-build

Owner: Duke Center for Genomic and Computational Biology

Description: Listens for github webhook, validates secret and runs a script

Created: 2017-06-05 15:04:50.0

Updated: 2017-11-07 14:07:02.0

Pushed: 2017-08-24 17:53:20.0

Homepage: null

Size: 9

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

hook-build

Listens for github webhook, validates secret and runs a script

Requires

nodejs and npm

Setup
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
 KEYPATH=<PATH_TO_SSL_KEY> CERTPATH=<PATH_TO_SSL_CERT> MESSAGE_REGEX='<commit pattern> GITHUB_KEY=<SOMEKEY> ON_RELEASE_CMD=<SCRIPTTORUN> node index.js 

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.