Updated travis.yml to not push 'latest' tag

Signed-off-by: Burton Rheutan <rheutan7@gmail.com>
This commit is contained in:
Burton Rheutan 2017-10-05 07:16:23 -05:00 committed by Alex Ellis
parent 9bd10a6649
commit 38e0a9956f

View File

@ -14,3 +14,9 @@ script:
- sh build.sh
# Invoke ci script too
- sh contrib/ci.sh
after_success:
- if [ ! -s "$TRAVIS_TAG" ] ; then
docker tag $DOCKER_USERNAME/gateway:latest-dev $DOCKER_USERNAME/gateway:$TRAVIS_TAG;
docker login -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD;
docker push $DOCKER_USERNAME/gateway:$TRAVIS_TAG;
fi