added version information to the image
This commit is contained in:
@@ -70,7 +70,7 @@ function cleanup {
|
||||
}
|
||||
trap cleanup EXIT
|
||||
|
||||
build_docker_image ${ImageName} ${RegistryService} ${ImageVersion}
|
||||
build_docker_image ${ImageName} ${RegistryService} ${ImageVersion} ${Project} ${ProjectVersion}
|
||||
|
||||
|
||||
# echo "**** D E B U G E X I T" && exit
|
||||
|
||||
@@ -41,8 +41,13 @@ build_docker_image() {
|
||||
ImageName=${1}
|
||||
RegistryService=${2}
|
||||
Version=${3}
|
||||
Project=${4}
|
||||
ProjectVersion=${5}
|
||||
|
||||
Cmd="docker build"
|
||||
if [ "${ProjectVersion}" != "" ]; then
|
||||
Cmd+=" --label ${Project}=\"${ProjectVersion}\""
|
||||
fi
|
||||
Cmd+=" -t ${ImageName}"
|
||||
Cmd+=" -t ${ImageName}:latest"
|
||||
Cmd+=" -t ${ImageName}:${Version}"
|
||||
|
||||
Reference in New Issue
Block a user