diff options
author | HuabingZhao <zhao.huabing@zte.com.cn> | 2017-08-17 11:54:20 +0800 |
---|---|---|
committer | HuabingZhao <zhao.huabing@zte.com.cn> | 2017-08-17 11:54:31 +0800 |
commit | 10d9195ca4acd88ca989355ab9b1be7577d02f6e (patch) | |
tree | 3e651c09dcd1eebd538c7b6a9ed7774b57a07bcc /build4docker.sh | |
parent | 71488f1e6342dc8beaf26e633b6967b936c22c05 (diff) |
Push api gateway docker to ONAP docker repo
Issue_id: MSB-18
Change-Id: I343aac669a9b077adf7e7c06a87d2b3b77de2560
Signed-off-by: HuabingZhao <zhao.huabing@zte.com.cn>
Diffstat (limited to 'build4docker.sh')
-rw-r--r-- | build4docker.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/build4docker.sh b/build4docker.sh index 290a652..7da1b38 100644 --- a/build4docker.sh +++ b/build4docker.sh @@ -36,6 +36,7 @@ mkdir $RELEASE_DIR -p DOCKER_RUN_NAME=msb_apigateway DOCKER_IMAGE_NAME=msb_apigateway DOCKER_RELEASE_VERSION=latest +DOCKER_REPOSITORY=nexus3.onap.org:10003 cp -r $RUNHOME/distributions/msb-apigateway/target/version/* ${RELEASE_DIR} cp $RUNHOME/ci/build_docker_image.sh ${RELEASE_DIR} @@ -53,3 +54,6 @@ docker rmi ${DOCKER_IMAGE_NAME}:${DOCKER_RELEASE_VERSION} docker run -d --net=host --name ${DOCKER_RUN_NAME} ${DOCKER_IMAGE_NAME}:${DOCKER_RELEASE_VERSION} docker ps |grep ${DOCKER_RUN_NAME} + +echo "Pushing ${DOCKER_IMAGE_NAME}:${DOCKER_RELEASE_VERSION}" +docker push ${DOCKER_REPOSITORY}/onap/msb/${DOCKER_IMAGE_NAME}:${DOCKER_RELEASE_VERSION}
\ No newline at end of file |