alandavis ad15447446 ACS-1464 Rename the local docker build profiles into *build-docker-images*
(cherry picked from commit 878eb3750f43c185585b47928bc47a60b7893942)
2021-05-05 21:10:18 +01:00

24 lines
780 B
Bash

#!/usr/bin/env bash
echo "=========================== Starting Build Script ==========================="
PS4="\[\e[35m\]+ \[\e[m\]"
set -vex
pushd "$(dirname "${BASH_SOURCE[0]}")/../../"
source "$(dirname "${BASH_SOURCE[0]}")/build_functions.sh"
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 *build-docker-images* profile
PROFILES="-Pbuild-docker-images"
fi
mvn -B -V install -DskipTests -Dmaven.javadoc.skip=true "${PROFILES}"
popd
set +vex
echo "=========================== Finishing Build Script =========================="