-
Notifications
You must be signed in to change notification settings - Fork 0
/
.travis.yml
27 lines (27 loc) · 2.76 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
sudo: required
dist: trusty
install:
- docker version
- sudo pip install docker-compose
- docker-compose version
before_script:
- docker-compose -f docker-compose_dev.yml up --build -d
- docker ps -a
script:
- docker ps | grep -q tapas
after_script:
- docker-compose down
after_success:
- docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
- export REPO=rmitsch/tapas
- export LOCAL_IMAGE_NAME=tapas_tapas
- export TAG=`if [ "$TRAVIS_BRANCH" == "master" ]; then echo "latest"; else echo $TRAVIS_BRANCH ; fi`
- docker tag $LOCAL_IMAGE_NAME $REPO:$TAG
- docker tag $LOCAL_IMAGE_NAME $REPO:travis-$TRAVIS_BUILD_NUMBER
- docker push $REPO
env:
global:
- COMMIT=${TRAVIS_COMMIT::8}
- secure: k9Vx91bRnGxmUeyYE9CnrNpdXz69S2AZ9lMBNsoCRIajOx8uA+LLksmxamgAWq9tGl9Q1DoTlpuX4xjzScteVsZnyrVw+MiMJ1qxRJE8LoGA4wuvgQ+ixCezxi7cpUmCvDCIWJ+2mcIF/epcWSAHgL3lIoeaEucwA0mNKsRvrV0wLdxwbiOGcKv7eLbrfStv8VfyJkpZybLh1BnzNgDx6WBF1SUxl0byjCtBLY9oiiASEZjH3H7ECrcCq/JEsePLjAjXNlqQ0sjNT721HjN+jjIqj1Ea9VAAHHYp9JVRgKN/U56LRI6AY/IXi9+zzY1O2IoqlY0cuYCKQv3EQykt4GuvVPNCGgm78g5NUgZpaB606FIcNw+BZShzi06FsL/WcloUPKJw568C0V2UFxscog6sSMtm4oh2h0opA5WaopC5PWG2YZdHaTZSetXuyyDTmiw30leWFfh3WYhDhuqcpkxkz/r49vkew56L4qGwhOlfVeRe0JwvlWVg6kxuDYPNAVjezAbZsbFQa1xZ3buN/OVSeWSf4ojAnYzMM3zy3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