From fa3551e3faa806c0759c0fb5990c94d2a9a0cf94 Mon Sep 17 00:00:00 2001 From: Daniel Davison Date: Thu, 17 Nov 2016 21:01:11 -0500 Subject: [PATCH] also push major and major.minor --- .travis.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.travis.yml b/.travis.yml index 48dba7bde..6bb7efe58 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,6 +19,11 @@ after_success: - if [ "$TRAVIS_TAG" != "" ]; then docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD"; VERSION="$TRAVIS_TAG" make release; + a=( ${TRAVIS_TAG//./ }); + major="${a[0]}"; + minor="${a[1]}"; + VERSION="$major" make release; + VERSION="$major.minor" make release; fi - if [[ "$TRAVIS_TAG" == "$LATEST"* ]]; then docker login -e="$DOCKER_EMAIL" -u="$DOCKER_USERNAME" -p="$DOCKER_PASSWORD";