-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.travis.yml
executable file
·36 lines (36 loc) · 3.2 KB
/
.travis.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
language: node_js
node_js:
- 8.4.0
services:
- docker
notifications:
email: false
before_install:
- npm i -g npm@latest
cache:
directories:
- node_modules
after_success: npm run coveralls
before_deploy:
- npm run build && rm -rf specs-editor && npm pack
env:
matrix:
- DOCKER_IMAGE_NAME=opengate/specs-generator
global:
- secure: e1wQVABou5HG1fbMw34zUpLf7+He8/ze2gwqdggAAOe3pSm6ULx1j5GuSW05pyCZfhXiT6K7L00ap0N1V8BxHFGflLRDppciK2NDmSXGJm6k//6iRBpMyJGK0f8RXW9r43KC7jzrvjwczGY+5yXaEbD4eUw2ApPH7Mgvo3hhb2Kl6SCq4KicacVWJEQHJeA0uBQLRXzS8zT84Ku/DSHQvesIEuHyj+xN7AjwhIfVxPqDDFE45hdZpWjMBZrFpz/Uu6vokLAN3601OYWVP5jzKZ22sDw9PDlq+0ao08QGPSZe2mOUlbu2ytzmN7rbS9AHXmnPz4tyegf4LcmOceR02k7Q5Bvnz22sGIC5b+ugnK/ptx597CsejFK4+O9dE/sWrYLUu2mWWnhA/mxK9SXaTnE9j+v2rwMj+GsSm4JDdniteA6s8b+TSWY83P0nnfDetu53JYNlHebyaUkZ0/IDS/WTmxHJxYfzqRZazzpBQdR9yfshHB89Nt9DP18v6r+poANFZcZR+BKDJy6CkeDI1btLwfFbgw4uAcjNYRueSh18tp1RTnHK35LX7LqO+5rob/EW1892cuG43WZ+oPz+FQy/TqCubrwXGaTee19I1FnzQ/er2oKNz53Xu0GE3A+gi2pr6ZbUBJqEgJJS4PTynNwIReXvsmYUcLDT20/qPNw=
- secure: bWk6VUwqgmQebw1tWJW1QYXfnf6T0vjgSrnkmnr1fB8+/P7h0+b8rkYTlbPB5YyzXC1yyb0JniieySM6mW1LnGFuMLp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UYAkxF3RX9yFF+RneCxV6UWZHiYh7suGpvGogR+X0wyC+Xb1CMRTAmaIwflTOUos7E3o4G1hbg26Fz4PUpkq8fbp+Uc5QqptYLxE+lUtQ310O7A3Rz6TPXPoqKPAAG24WONRsYXBYZcFJeMPkR0dEUCwgwjgFcFUrevBaxKF8tkQJehuvIgG5mG0b1i+3L3yj1NpgwsFiWR5Z6tQxsGoVM=
file:
- specs-generator-${TRAVIS_TAG}.tgz
skip_cleanup: true
on:
repo: opengate-io/specs-generator
tags: true
after_deploy:
- |-
sed -i "s|0.0.0|${TRAVIS_TAG}|" Dockerfile
if [ $DOCKER_HUB_USERNAME ]; then docker login --username=$DOCKER_HUB_USERNAME --password=$DOCKER_HUB_PASSWORD;
if [ ! -z "$TRAVIS_TAG" ]; then DOCKER_IMAGE_TAG=$TRAVIS_TAG; else DOCKER_IMAGE_TAG=latest; fi; docker build -t $DOCKER_IMAGE_NAME .; if [ ! -z "$TRAVIS_TAG" ]; then docker tag $DOCKER_IMAGE_NAME $DOCKER_IMAGE_NAME:$DOCKER_IMAGE_TAG; docker push $DOCKER_IMAGE_NAME:$DOCKER_IMAGE_TAG; docker tag $DOCKER_IMAGE_NAME $DOCKER_IMAGE_NAME:latest; docker push $DOCKER_IMAGE_NAME:latest; else docker tag $DOCKER_IMAGE_NAME $DOCKER_IMAGE_NAME:$DOCKER_IMAGE_TAG; docker push $DOCKER_IMAGE_NAME:$DOCKER_IMAGE_TAG; fi; fi;