mirror of
https://github.com/openfaas/faas.git
synced 2025-06-09 16:56:47 +00:00
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) <alexellis2@gmail.com>
This commit is contained in:
parent
0b28e96a58
commit
cb15c11061
@ -20,7 +20,7 @@ script:
|
|||||||
- sh contrib/ci.sh
|
- sh contrib/ci.sh
|
||||||
|
|
||||||
after_success:
|
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 tag $DOCKER_NS/gateway:latest-dev $DOCKER_NS/gateway:$TRAVIS_TAG;
|
||||||
docker login -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD;
|
docker login -u=$DOCKER_USERNAME -p=$DOCKER_PASSWORD;
|
||||||
docker push $DOCKER_NS/gateway:$TRAVIS_TAG;
|
docker push $DOCKER_NS/gateway:$TRAVIS_TAG;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user