-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
63 lines (51 loc) · 3.83 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
sudo: required
services:
- docker
language: java
jdk: oraclejdk8
env:
global:
- secure: "oGkyVJXQNZjbBav/SH3tCMQI2iE7xp+sGPntbv0RETkxDohW5oDpMlWfjI+6YS7AN2LmMbvkSowpU5y9nvU3vu0ICaOy/4z7My6k/3uabVklEgd7lVWkf/pW1EAIGx+jCKqP2lnR7XgpT/xenD2JzNpYHPm6EywQ6RBUv9VXvfvQQy9LFmEsZ74/ayJ3NGIh99Br69ji1HhPixxIn6g7fB7ykOj8BXjHihbf0ntzc1DQlVJ1EJro+TXa0/CWxHRnfEyirdj8dQHxM02pkVJGV31Dy3IC3iaX9g5m3uWAU7niRhCk5FwFmDZZl4lxbYtd5NywNfVL2fbRDLodjiyj2bzNDV6mibV0ch5ntgCXJK7j904/GjBWrLk5tancjYk4lkurDP2n7vxoi/fuNoS3E3iaoo6JZaSF+noyb063o994oZggCsMfxK+xqiVQNstgifGAZ4KsQYyCNKwTsWdTlvUqVF377tSY57IpTmSTEMO6B2jokY/Er+hnmaYgZxs4CNSF/cAcOE0a+HYJJCHw2V60CY77Er13PYyY/JEEuicI21MTxr0wYGV0VlpUrUlCz1XdKU5fDEDZNX7IGHRAwdeQhFbu+/qOD+0aX+HkRwlifS04m1J3QFf/xB4cBXS7N9f8eyy9nlpG+dAVGNbvdsaTeHeEnngvgbJY6yFk0LY=" # DOCKER_EMAIL
- secure: "cSba1BKAHZjas7/kHCfCOW0is2GRspaBK7heBO42rr/5xAQ/A4Pb6esJ2yZo92LvcAnKjMEu8WyJvG3BdBf8/eIS8eSwewzjk+1Whfjcfn4BQH5ypiZCaMSmiIVOKcKaUVefrcEWhK46Iv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V9YJWbndQDmIZ4PFi0ZWgNQuh/azyY0Fout22fXDLCi4Hl5GKX17qWHOFKpo75zOdGkYRDamTugRuIzGlaDItR+kdk7xfV1hegFmPLKdQxyZM7XyRHZ1Nz14BmcJQe/vWar+QntQlatIP/PfZE=" # DOCKER_PASS
- COMMIT=${TRAVIS_COMMIT::7}
after_success:
- bash <(curl -s https://codecov.io/bash)
- docker login -u $DOCKER_USER -p $DOCKER_PASS
#TAG
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
# CONFIG SERVICE
- export CONFIG=wallacecamacho/springseed-config
- docker build -t $CONFIG:$COMMIT ./config
- docker tag $CONFIG:$COMMIT $CONFIG:$TAG
- docker push $CONFIG
# REGISTRY
- export REGISTRY=wallacecamacho/springseed-registry
- docker build -t $REGISTRY:$COMMIT ./registry
- docker tag $REGISTRY:$COMMIT $REGISTRY:$TAG
- docker push $REGISTRY
# GATEWAY
- export GATEWAY=wallacecamacho/springseed-gateway
- docker build -t $GATEWAY:$COMMIT ./gateway
- docker tag $GATEWAY:$COMMIT $GATEWAY:$TAG
- docker push $GATEWAY
# ACCOUNT SERVICE
- export ACCOUNT_SERVICE=wallacecamacho/springseed-account-service
- docker build -t $ACCOUNT_SERVICE:$COMMIT ./account-service
- docker tag $ACCOUNT_SERVICE:$COMMIT $ACCOUNT_SERVICE:$TAG
- docker push $ACCOUNT_SERVICE
# MONITORING
- export MONITORING=wallacecamacho/springseed-monitoring
- docker build -t $MONITORING:$COMMIT ./monitoring
- docker tag $MONITORING:$COMMIT $MONITORING:$TAG
- docker push $MONITORING
# TURBINE STREAM SERVICE
- export TURBINE=wallacecamacho/springseed-turbine-stream-service
- docker build -t $TURBINE:$COMMIT ./turbine-stream-service
- docker tag $TURBINE:$COMMIT $TURBINE:$TAG
- docker push $TURBINE
# MONGO DB
- export MONGO_DB=wallacecamacho/springseed-mongodb
- docker build -t $MONGO_DB:$COMMIT ./mongodb
- docker tag $MONGO_DB:$COMMIT $MONGO_DB:$TAG
- docker push $MONGO_DB