Tag staging docker image
[multicloud/framework.git] / multivimbroker / docker / build_image.sh
index 73a8db6..5ff0adf 100644 (file)
@@ -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
 }