-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.travis.yml
31 lines (28 loc) · 1.62 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
language: java
jdk:
- oraclejdk8
sudo: required
services:
- docker
branches:
only:
- master
after_success:
- if [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_BRANCH" == "master" ]; then
echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin;
export REPO=udlepssoftarch/webingo-gei-api;
export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`;
docker build -f Dockerfile -t $REPO:$TRAVIS_COMMIT .;
docker tag $REPO:$TRAVIS_COMMIT $REPO:$TAG;
docker push $REPO;
docker login --username=_ --password=$HEROKU_TOKEN registry.heroku.com;
docker tag $REPO:$TRAVIS_COMMIT registry.heroku.com/webingo-gei-api/web;
docker push registry.heroku.com/webingo-gei-api/web;
wget -qO- https://toolbelt.heroku.com/install.sh | sh;
heroku container:release web --app webingo-gei-api;
fi
notifications:
slack:
secure: CLJRQTpiv5oCQukwIy/I71zb+iPWMaRg8ZNan0zy3BX1BPXxAdP8S7zX27z/m8wdtV0+ogsHHOXLEkGFbkhfkMXQFO/SRtnrV5OdOb5KEWg5cJZsG8PPW7tC1RcFprFaL9rcJ14XAYn+QrFlSbkvuHMnL2HMXHPkPZ1/7zHg3MAnIlBROIBjM+IpqLBF1c0I+f5NPzH1ILncxezevRHCsXA4WeG1jXz4YiM2BeGD9DAoeQa8X1yhiXzYTNumRAqhmguUuSzDi4VCPJwIiIMsA/buIAS+1GdVOUBFU6+mnM01xKIbfFvXZJyySfQ3Y2WQ3kCOc4p+XdnLOLzmSTcOdwpiemWlqO7+E+k6i2qAIKT43e4C+DKq5Avgu1Wodo+dJerZeKEFvPgMAmc0sFWHgXYQmeYsgS49iJhuDuOII33YCbsDN9uUsMQqgSdr9twS0r7BdFVOsLwy3gwNMMcDK7r43e0hPIjWV6GdLmpylozUrVkdw4dEULrJct81GbDOx6Zdea0B+EzVm8fQaNcCi2jdHrREgDZVk4UeAwqSGPnB0bRCd9p1/sKtYOH1Km75bpGE81ajpwd+kohYVYAl5OYVbTTCISYySudHyAwTv/Qb/G9GfeCmwOEDrp2I0im+ePJqd0hlBE1ttZOcrKHCTzEsN8ODqnnN1510yoEtLY8=
on_success: change
on_failure: always