From 9f16170d05b14872b8f60f0fc89da0456601ec41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Treer=20Zolt=C3=A1n?= Date: Wed, 24 Apr 2019 13:46:08 +0200 Subject: [PATCH] improve tagging logic (only tag with latest if branch is master) --- .travis.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index fca8e99d..84b21382 100644 --- a/.travis.yml +++ b/.travis.yml @@ -38,7 +38,9 @@ after_success: if [ ! -z $TRAVIS_TAG ]; then yarn docker:tag:version $TRAVIS_TAG; fi - yarn docker:tag:latest; # NB: it will tag old version with latest if you tag an old commit on master + if [ $TRAVIS_BRANCH == "master" ]; then + yarn docker:tag:latest; + fi docker push augmint/contracts ; fi fi