Update verifyReleaseTag.sh

Instead of using a hard coded string the image name is retrieved from the docker-alfresco/pom.xml
This commit is contained in:
David Edwards
2020-03-02 17:13:54 +00:00
parent 19fdbe3840
commit 3237b95d9c

View File

@@ -1,7 +1,8 @@
#!/usr/bin/env bash
set -e
alfresco_docker_image="alfresco/alfresco-content-repository-community"
# get the image name from the pom file
alfresco_docker_image=$(mvn help:evaluate -f ./docker-alfresco/pom.xml -Dexpression=image.name -q -DforceStdout)
if [ -v ${release_version} ]||[ -z ${release_version} ]; then
# if we don't have a user added release version, get the verison from the pom
pom_version=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)