Skip to content

Latest commit

 

History

History
40 lines (26 loc) · 1.1 KB

README.md

File metadata and controls

40 lines (26 loc) · 1.1 KB

gitlab-ci-slack

[DEPRECATED] This functionality is now built-in Gitlab CI and this repository is therefore obsolete.

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