From b2c5078c2f2288154b400e2fbfb8e6f70225fdfa Mon Sep 17 00:00:00 2001 From: Fabian Castillo Date: Tue, 28 Jan 2020 17:39:02 -0800 Subject: [PATCH] build: push tagged docker build --- .travis.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.travis.yml b/.travis.yml index 1b354ca77..43652c5ed 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,3 +46,9 @@ jobs: docker tag flogo/flogo-web:latest-ml flogo/flogo-web:unstable-ml docker push flogo/flogo-web:unstable-ml fi + + if [ ! -z "$TRAVIS_TAG" ]; then + echo "Tag detected, pushing tag '${TRAVIS_TAG}' to docker hub" + docker tag flogo/flogo-web:latest "flogo/flogo-web:${TRAVIS_TAG}" + docker push "flogo/flogo-web:${TRAVIS_TAG}" + fi