diff options
author | liangke <lokyse@163.com> | 2017-09-25 15:09:28 +0800 |
---|---|---|
committer | liangke <lokyse@163.com> | 2017-09-26 10:07:01 +0800 |
commit | 3406b48e1526dd7723f534d8d36ad183b01cbd06 (patch) | |
tree | 465d3abfbc4274dd9e7e47579ac73a53950ddaba /vio/docker | |
parent | 5cb1eae7a205c162b2dc471cdcbee7f4238fd761 (diff) |
Add staging maven plugin in vio pom
1 push source code file to staging repository
2 push staging image
Change-Id: Icebcaba5f5f7e68b869015eb028de687eca7b624
Issue-Id: MULTICLOUD-107
Signed-off-by: liangke <lokyse@163.com>
Diffstat (limited to 'vio/docker')
-rwxr-xr-x | vio/docker/build_image.sh | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vio/docker/build_image.sh b/vio/docker/build_image.sh index b1e691b..ff2fbdf 100755 --- a/vio/docker/build_image.sh +++ b/vio/docker/build_image.sh @@ -7,6 +7,7 @@ cd ${DOCKER_BUILD_DIR} BUILD_ARGS="--no-cache" ORG="onap" VERSION="1.0.0-SNAPSHOT" +STAGING="1.0.0-STAGING" PROJECT="multicloud" IMAGE="vio" DOCKER_REPOSITORY="nexus3.onap.org:10003" @@ -21,14 +22,15 @@ fi function build_image { echo "Start build docker image: ${IMAGE_NAME}" - 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} . } function push_image { echo "Start push docker image: ${IMAGE_NAME}" docker push ${IMAGE_NAME}:${VERSION} docker push ${IMAGE_NAME}:latest -} + docker push ${IMAGE_NAME}:${STAGING} +} build_image push_image |