From 0ff416da28a55788fb2c269086a2b699843d3307 Mon Sep 17 00:00:00 2001 From: "Cezar.Leahu" Date: Wed, 26 Aug 2020 13:29:28 +0300 Subject: [PATCH] ACS-457: Build linkage, tagging and release - reorder a few conditions in build.sh --- scripts/travis/build.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/travis/build.sh b/scripts/travis/build.sh index 3c5143bf19..e188b7bd8e 100644 --- a/scripts/travis/build.sh +++ b/scripts/travis/build.sh @@ -4,9 +4,11 @@ pushd "$(dirname "${BASH_SOURCE[0]}")/../../" source "$(dirname "${BASH_SOURCE[0]}")/build_functions.sh" -if [ "${TRAVIS_BUILD_STAGE_NAME,,}" = "release" ] && [ "${TRAVIS_BRANCH}" = "master" ] && isBranchBuild ; then +if isBranchBuild && [ "${TRAVIS_BRANCH}" = "master" ] && [ "${TRAVIS_BUILD_STAGE_NAME,,}" = "release" ] ; then + # update ":latest" image tags on remote repositories by using the maven *internal* profile PROFILES="-Pinternal" else + # build the ":latest" image tags locally with the maven *communityDocker* profile PROFILES="-PcommunityDocker" fi