summaryrefslogtreecommitdiffstats
path: root/multivimbroker
diff options
context:
space:
mode:
authorEthan Lynn <ethanlynnl@vmware.com>2017-10-12 17:18:08 +0800
committerEthan Lynn <ethanlynnl@vmware.com>2017-10-12 17:18:48 +0800
commit4d52f6ef8fc8a5ad1af673e5bd6582e1e5afada1 (patch)
treeaf05c6de5431159a30c9b8e7d6a4125f42b56525 /multivimbroker
parent3239e70d35b4bcf5ed9f5fe0c34caf4a78063395 (diff)
Tag staging docker image
tag docker image as 1.0.0-STAGING Change-Id: Iaa89cef7805bb879165eea13e08177bec1ce529b issue-id: MULTICLOUD-112 Signed-off-by: Ethan Lynn <ethanlynnl@vmware.com>
Diffstat (limited to 'multivimbroker')
-rw-r--r--multivimbroker/docker/build_image.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/multivimbroker/docker/build_image.sh b/multivimbroker/docker/build_image.sh
index 73a8db6..5ff0adf 100644
--- a/multivimbroker/docker/build_image.sh
+++ b/multivimbroker/docker/build_image.sh
@@ -7,6 +7,7 @@ cd ${DOCKER_BUILD_DIR}
BUILD_ARGS="--no-cache"
ORG="onap"
VERSION="1.0.0-SNAPSHOT"
+STAGING_VERSION="1.0.0-STAGING"
PROJECT="multicloud"
IMAGE="framework"
DOCKER_REPOSITORY="nexus3.onap.org:10003"
@@ -20,11 +21,12 @@ if [ $HTTPS_PROXY ]; then
fi
function build_image {
- docker build ${BUILD_ARGS} -t ${IMAGE_NAME}:${VERSION} -t ${IMAGE_NAME}:latest .
+ docker build ${BUILD_ARGS} -t ${IMAGE_NAME}:${VERSION} -t ${IMAGE_NAME}:latest -t ${IMAGE_NAME}:${STAGING_VERSION} .
}
function push_image {
docker push ${IMAGE_NAME}:${VERSION}
+ docker push ${IMAGE_NAME}:${STAGING_VERSION}
docker push ${IMAGE_NAME}:latest
}