Skip to content

liocuevas/gitlab-webhook-deployer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

It listens to gitlab webhook push events and run commands for repositories configured in config.js. Currently, it runs on GNU/Linux and BSD OSes only.

Build & Runtime Dependencies

  • nodejs >= 0.10.x
  • npm >= 1.4.x

Installation

  • cd any-installation-dir
  • git clone https://github.com/liocuevas/gitlab-webhook-deployer.git
  • cd gitlab-webhook-deployer
  • npm install

config.json

  • cp config.json.example /path/to/your/config.json then set up your repositories:
{
    "host" : "0.0.0.0",
    "port" : 8889,
    "repositories" : {
        "[repository name]" : {
            "name":"[my super cool name]",
            "basepath" : "[path to where the command will run]",
            "command" : "[the command to run]",
            "branch" : "[what branch to react to]"
        }
    }
}

configDir.js

  • cp configDir.js.dist configDir.js then setup the path to your config.json file:
module.exports="/path/to/your/config.json";
  • node main.js starts the startup script manually

Setup the webhook at Gitlab

  • Go to your git lab installation: http://your.gitlab.domain/user/project-name/hooks
  • Set the webhook url: http://your.webhook.domain:port

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published