diff options
author | 2017-12-22 15:06:01 +0800 | |
---|---|---|
committer | 2017-12-22 15:06:01 +0800 | |
commit | 0c41886897ebb65d977de894ffceee6cebbabd82 (patch) | |
tree | 65c6feda9845acf13ced6e99d91ffcddc0f967f8 | |
parent | 5c1540559abea0c76191ea97b5c8cb4a4dc990a1 (diff) |
Update tag in build_image.sh
Change-Id: Id9554a77d429b350d3622422a0ecc9e0e84e2b74
Issue-ID: VFC-624
Signed-off-by: luxin <luxin7@huawei.com>
-rw-r--r-- | ResmanagementService/docker/build_image.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/ResmanagementService/docker/build_image.sh b/ResmanagementService/docker/build_image.sh index 85ce03a..c34b123 100644 --- a/ResmanagementService/docker/build_image.sh +++ b/ResmanagementService/docker/build_image.sh @@ -21,20 +21,20 @@ if [ $HTTPS_PROXY ]; then fi function build_image { - echo "Start build docker image: ${IMAGE_NAME}" - docker build ${BUILD_ARGS} -t ${IMAGE_NAME}:latest . + echo "Start build docker image: ${IMAGE_NAME}:${VERSION}-latest" + docker build ${BUILD_ARGS} -t ${IMAGE_NAME}:${VERSION}-latest . } function push_image_tag { TAG_NAME=$1 echo "Start push ${TAG_NAME}" - docker tag ${IMAGE_NAME}:latest ${TAG_NAME} + docker tag ${IMAGE_NAME}:${VERSION}-latest ${TAG_NAME} docker push ${TAG_NAME} } function push_image { - echo "Start push ${IMAGE_NAME}:latest" - docker push ${IMAGE_NAME}:latest + echo "Start push ${IMAGE_NAME}:${VERSION}-latest" + docker push ${IMAGE_NAME}:${VERSION}-latest push_image_tag ${IMAGE_NAME}:${VERSION}-SNAPSHOT-latest push_image_tag ${IMAGE_NAME}:${VERSION}-STAGING-latest |