Skip to content

emilisto/gitlab-ci-slack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gitlab-ci-slack

Tiny web server to get Travis-like Slack notifications with Gitlab CI.

Configure

First, set the following environment variables.

port     = process.env['PORT'] || 5000
ciUrl    = process.env['CI_SERVER_URL']
slackUrl = process.env['SLACK_URL']
username = process.env['CI_SLACK_USERNAME'] || 'Gitlab CI'
  • PORT is the port the webapp will be listening to
  • CI_SERVER_URL is your Gitlab CI url
  • SLACK_URL is Slack webhooks URL
  • CI_SLACK_USERNAME is the username to be used when posting

Running

Just run

$ npm install
$ npm start

and add a Gitlab CI webhook to point to the server.

Deploying

The app works perfectly on a free heroku dyno, if you have an account it's as simple as pressing the button below and setting the relevant config variables in the web admin console.

Deploy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 51.1%
  • CoffeeScript 48.9%