https://github.com/soulman-is-good/gitpub
Git webhook watcher and publisher
https://github.com/soulman-is-good/gitpub
continuous-integration git git-webhook nodejs
Last synced: 11 months ago
JSON representation
Git webhook watcher and publisher
- Host: GitHub
- URL: https://github.com/soulman-is-good/gitpub
- Owner: soulman-is-good
- Created: 2015-10-26T07:18:19.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-11-07T06:07:04.000Z (over 9 years ago)
- Last Synced: 2025-02-10T02:23:53.492Z (about 1 year ago)
- Topics: continuous-integration, git, git-webhook, nodejs
- Language: JavaScript
- Homepage:
- Size: 6.84 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Git web hook listener
=========================
Helps to manage git repositories listening for push events, with script executions
Install
------------
One must clone this repository to be able to launch listener.
Once repo is cloned go to it's dir and just run app.js
```bash
git clone https://github.com/soulman-is-good/gitpub.git
cd gitpub
npm install
npm start
```
Configure
-------------
One must have configuration **json** file ready to be able to run this listener (in other words, listener must have an instruction for what to do if event occures)
By default *gitpub* looks for `GITPUB_CONFIG` environment variable, containing **full** path to configuration json file including filename, and then tries to look for `config.json` file in _repository_ folder.
You can take `config.template.json` file in repo dir for start.
Configuration looks like this:
```json
{
"myrepo-name-as-is": {
"branch-name-for-example-master": {
"dir": "/home/user/myrepo-to-publish/",
"beforePull": [],
"afterPull": [
["npm install", "bower install"],
["gulp", "pm2 restart all"]
]
}
},
"myotherrepo": {
"master": {},
"dev": {},
"RC": {}
}
}
```