-
Notifications
You must be signed in to change notification settings - Fork 4
/
.travis.yml
20 lines (20 loc) · 670 Bytes
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
sudo: required
services:
- docker
language: node_js
node_js:
- "8"
script:
- npm install
- npm run build
- npm run coveralls
cache:
directories:
- "node_modules"
after_success:
- test "$TRAVIS_TAG" != "" && version=${TRAVIS_TAG:1};
- test "$TRAVIS_TAG" != "" && docker build -t gyselroth/kube-icinga:$version .
- test "$TRAVIS_TAG" != "" && docker login -u "$DOCKER_USERNAME" -p "$DOCKER_PASSWORD"
- test "$TRAVIS_TAG" != "" && docker tag gyselroth/kube-icinga:$version gyselroth/kube-ldap:latest
- test "$TRAVIS_TAG" != "" && docker push gyselroth/kube-icinga:$version
- test "$TRAVIS_TAG" != "" && docker push gyselroth/kube-icinga:latest