-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.travis.yml
32 lines (27 loc) · 1.05 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
services:
- docker
branches:
only:
- master
- /^v\d+\.\d+\.\d+.*$/ # version tags
notifications:
email:
recipients:
on_success: never
on_failure: always
before_install:
- set -e
- echo "Travis tag is $TRAVIS_TAG"
- ./docker/build-docker.bash --pull --no-cache
- echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
- set +e
script:
- if [ -z $TRAVIS_TAG ]; then echo "Not a tag build, will upload concert_description:unstable tag"; fi
- if [ -z $TRAVIS_TAG ]; then docker tag arturolaurenzi/concert_description:latest arturolaurenzi/concert_description:unstable; fi
- if [ -z $TRAVIS_TAG ]; then docker push arturolaurenzi/concert_description:unstable; fi
- if [ -z $TRAVIS_TAG ]; then travis_terminate 0; fi
- docker push arturolaurenzi/concert_description:latest
- docker tag arturolaurenzi/concert_description:latest arturolaurenzi/concert_description:$TRAVIS_TAG
- docker push arturolaurenzi/concert_description:$TRAVIS_TAG