aboutsummaryrefslogtreecommitdiffstats
path: root/build4docker.sh
diff options
context:
space:
mode:
authorHuabing Zhao <zhaohuabing@gmail.com>2018-10-20 15:12:04 +0800
committerHuabing Zhao <zhaohuabing@gmail.com>2018-10-20 15:12:08 +0800
commitace0db05f978e84c80375976d8b8c279035135ea (patch)
treeb3e013a814e25f52b8685878abaeac543c042d55 /build4docker.sh
parent1888475606227b7b1371cfc8b66c7dcab290f636 (diff)
Align to Docker Standard Tag Format
Issue-ID: CIMAN-132 Change-Id: Ifbd675b0b3a3c148cf8fa187d05bca5a9db75f2d Signed-off-by: Huabing Zhao <zhaohuabing@gmail.com>
Diffstat (limited to 'build4docker.sh')
-rw-r--r--build4docker.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/build4docker.sh b/build4docker.sh
index a67a76d..52e654f 100644
--- a/build4docker.sh
+++ b/build4docker.sh
@@ -30,7 +30,7 @@ DOCKER_IMAGE_NAME=msb_discovery
DOCKER_LATEST_VERSION=latest
DOCKER_RELEASE_VERSION=1.2.1
DOCKER_REPOSITORY=nexus3.onap.org:10003
-TIMESTAMP=$(date +"%Y%m%dT%H%M%S")
+TIMESTAMP=$(date +"%Y%m%dT%H%M%SZ")
rm -rf $RELEASE_DIR
mkdir $RELEASE_DIR -p
@@ -50,7 +50,7 @@ docker rmi ${DOCKER_REPOSITORY}/onap/msb/${DOCKER_IMAGE_NAME}:${DOCKER_RELEASE_V
./build_docker_image.sh -n=${DOCKER_REPOSITORY}/onap/msb/${DOCKER_IMAGE_NAME} -v=${DOCKER_LATEST_VERSION} -d=./docker
docker run -d --net=host --name ${DOCKER_RUN_NAME} ${DOCKER_REPOSITORY}/onap/msb/${DOCKER_IMAGE_NAME}:${DOCKER_LATEST_VERSION}
-docker ps |grep ${DOCKER_RUN_NAME}
+docker ps |grep ${DOCKER_RUN_NAME}
echo "Pushing ${DOCKER_REPOSITORY}/onap/msb/${DOCKER_IMAGE_NAME}:${DOCKER_LATEST_VERSION}"
docker push ${DOCKER_REPOSITORY}/onap/msb/${DOCKER_IMAGE_NAME}:${DOCKER_LATEST_VERSION}