Skip to content

Commit

Permalink
improve tagging logic (only tag with latest if branch is master)
Browse files Browse the repository at this point in the history
  • Loading branch information
treerz committed Apr 24, 2019
1 parent 11bd073 commit 9f16170
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9f16170

Please sign in to comment.