git-trigger
v0.0.1
Published
Watching git branch and trigger commands
Downloads
2
Readme
git-trigger
Usage
npm install -g git-trigger
vi trigger.config.js
git-trigger ./trigger.config.js
USAGE
git-trigger start <config>
ARGUMENTS
<config> Config file required
OPTIONS
--pidfile <pidfile> PID file optional
GLOBAL OPTIONS
-h, --help Display help
-V, --version Display version
--no-color Disable colors
--quiet Quiet mode - only displays warn and error messages
-v, --verbose Verbose mode - will also output debug messages
trigger.config.js
module.exports = {
interval: 2 * 60 * 1000, // 2 min
repositories: [
{
url: "[email protected]:nabeix/git-trigger.git",
branch: "master",
dir: "/var/app/git-trigger",
actions: [
{
when: "changed",
run: "npm i && npm run build && npm t"
}
]
}
]
}
Live config update
git-trigger
supports live config update by SIGUSR1
signal.
License
MIT