updated build
This commit is contained in:
parent
fbba5afbbd
commit
0845bd73b7
@ -5,14 +5,14 @@ dockerfileLocation="docker/$PROJECT/Dockerfile"
|
||||
|
||||
echo "On branch $bamboo_planRepository_branchName building project $PROJECT"
|
||||
# shellcheck disable=SC2154
|
||||
if [[ "$BAMBOO_PLANREPOSITORY_BRANCHNAME" == "master" ]]
|
||||
if [[ "$bamboo_planRepository_branchName" == "master" ]]
|
||||
then
|
||||
./versions.sh minor
|
||||
version=$(jq -r '.version' < package.json)
|
||||
fi
|
||||
|
||||
|
||||
if [[ "$BAMBOO_PLANREPOSITORY_BRANCHNAME" == release* ]]
|
||||
if [[ "$bamboo_planRepository_branchName" == release* ]]
|
||||
then
|
||||
./versions.sh patch
|
||||
version=$(jq -r '.version' < package.json)
|
||||
@ -25,6 +25,8 @@ docker build -t "$imageName":latest -f "$dockerfileLocation" .
|
||||
if [[ -n ${version+z} ]]
|
||||
then
|
||||
|
||||
echo "APP_VERSION=${version}" > version.properties
|
||||
|
||||
echo "Publishing Images with version $version"
|
||||
echo "$bamboo_bamboo_download_pass | docker login -u $bamboo_bamboo_download_user --password-stdin nexus.iqser.com:5001"
|
||||
|
||||
@ -34,4 +36,6 @@ then
|
||||
|
||||
else
|
||||
echo "Not on a relevant branch $BRANCH_NAME ... skipping."
|
||||
|
||||
echo "APP_VERSION=$bamboo_planRepository_branchName" > version.properties
|
||||
fi
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user