Skip to content

Commit

Permalink
Merge 99d931e into dab199a
Browse files Browse the repository at this point in the history
  • Loading branch information
etienne-napoleone committed Jul 25, 2018
2 parents dab199a + 99d931e commit df95aec
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
13 changes: 12 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,20 @@ jobs:
- docker build -t tomochain/tomomaster .
deploy:
provider: script
script: bash docker_push.sh
script:
- bash docker_push.sh latest
- bash docker_push.sh $TRAVIS_BUILD_ID
on:
branch: master
tags: false
deploy:
provider: script
script:
- bash docker_push.sh latest
- bash docker_push.sh $TRAVIS_TAG
on:
branch: master
tags: true
- stage: Trigger rebuild of infrastructure images
sudo: false
install: skip
Expand Down
6 changes: 2 additions & 4 deletions docker_push.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#!/bin/bash

echo "$DOCKER_PASSWORD" | docker login --username "$DOCKER_USERNAME" --password-stdin
docker tag tomochain/tomomaster tomochain/tomomaster:latest
docker tag tomochain/tomomaster tomochain/tomomaster:$TRAVIS_BUILD_ID
docker push tomochain/tomomaster:latest
docker push tomochain/tomomaster:$TRAVIS_BUILD_ID
docker tag tomochain/tomomaster tomochain/tomomaster:$1
docker push tomochain/tomomaster:$1

0 comments on commit df95aec

Please sign in to comment.