From cb15c11061044fb8a0f9cac392bea27ef014644a Mon Sep 17 00:00:00 2001 From: "Alex Ellis (VMware)" Date: Wed, 11 Apr 2018 20:33:46 -0700 Subject: [PATCH] Fix CI push behaviour CI was using a test of ! -s which appeared to give a false positive and try to push when it shouldn't. I changed it to -z which checks for an empty string instead. Signed-off-by: Alex Ellis (VMware) --- .travis.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 96fc9ade..d1223646 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,7 +20,7 @@ script: - sh contrib/ci.sh after_success: - - if [ ! -s "$TRAVIS_TAG" ] ; then + - if [ ! -z "$TRAVIS_TAG" ] ; then docker tag $DOCKER_NS/gateway:latest-dev $DOCKER_NS/gateway:$TRAVIS_TAG; docker login -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD; docker push $DOCKER_NS/gateway:$TRAVIS_TAG;