From 38e0a9956f1e53d42a4ded8834e0bc2074b7303a Mon Sep 17 00:00:00 2001 From: Burton Rheutan Date: Thu, 5 Oct 2017 07:16:23 -0500 Subject: [PATCH] Updated travis.yml to not push 'latest' tag Signed-off-by: Burton Rheutan --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 02eee57e..e1dd2d04 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 \ No newline at end of file