diff --git a/.travis.yml b/.travis.yml index 1538af5..be19f33 100644 --- a/.travis.yml +++ b/.travis.yml @@ -41,9 +41,15 @@ after_success: elif [ "$TRAVIS_TAG" != "" ]; then IMAGE_TAG_NAME="develop" fi; - - docker build --quiet -t gcr.io/deep-wares-144610/middleware-ethereum:$IMAGE_TAG_NAME . - - docker push gcr.io/deep-wares-144610/middleware-ethereum:$IMAGE_TAG_NAME - + - IMAGE_TAG_NAME="latest" + - | + if [ "$TRAVIS_BRANCH" == "master" ]; then + docker build --quiet -t gcr.io/deep-wares-144610/$TRAVIS_BRANCH/middleware-ethereum:$IMAGE_TAG_NAME . + docker push gcr.io/deep-wares-144610/$TRAVIS_BRANCH/middleware-ethereum:$IMAGE_TAG_NAME + elif [ "$TRAVIS_BRANCH" == "develop" ]; then + docker build --quiet -t gcr.io/deep-wares-144610/$TRAVIS_BRANCH/middleware-ethereum:$IMAGE_TAG_NAME . + docker push gcr.io/deep-wares-144610/$TRAVIS_BRANCH/middleware-ethereum:$IMAGE_TAG_NAME + fi; notifications: email: false