build.sh edited online with Bitbucket

This commit is contained in:
Timo Bejan 2021-11-02 09:49:43 +01:00
parent d7dd1af15f
commit 3f78f1fef5

View File

@ -53,5 +53,12 @@ then
else
echo "Not on a relevant branch $bamboo_planRepository_branchName ... skipping."
if [[ ! -z "$bamboo_version_tag" ]]
echo "Pushing custom tag: $bamboo_version_tag"
docker tag "$imageName:latest" "$imageName:$bamboo_version_tag"
docker push "$imageName:$bamboo_version_tag"
fi
echo "APP_VERSION=BRANCH-$bamboo_planRepository_branchName-$bamboo_buildNumber" > version.properties
fi