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