aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVijay Venkatesh Kumar <vv770d@att.com>2018-04-03 03:20:45 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-03 03:20:45 +0000
commit1c2fb197d1b406a6764dde9dddd14caa8c50713a (patch)
tree825d299d41dfab3190e053aa67bd691f9b2e49a0
parent715654de5385f474122a8ff2074100c16d52d2ee (diff)
parent653eca543f6122788b65738919767f4225ec9358 (diff)
Merge "Fix docker tag based on CIMAN-132"
-rwxr-xr-xmvn-phase-lib.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/mvn-phase-lib.sh b/mvn-phase-lib.sh
index 6736048..9bb81cd 100755
--- a/mvn-phase-lib.sh
+++ b/mvn-phase-lib.sh
@@ -234,7 +234,7 @@ build_and_push_docker()
VERSION="${MVN_PROJECT_VERSION//[^0-9.]/}"
VERSION2=$(echo "$VERSION" | cut -f1-2 -d'.')
- LFQI="${IMAGENAME}:${VERSION}-${TIMESTAMP}"
+ LFQI="${IMAGENAME}:${VERSION}-${TIMESTAMP}"Z
BUILD_PATH="${WORKSPACE}"
# build a docker image
docker build --rm -f "${WORKSPACE}"/Dockerfile -t "${LFQI}" "${BUILD_PATH}"
@@ -277,7 +277,7 @@ build_and_push_docker()
fi
OLDTAG="${LFQI}"
- PUSHTAGS="${REPO}/${IMAGENAME}:${VERSION2}-${TIMESTAMP} ${REPO}/${IMAGENAME}:${VERSION2} ${REPO}/${IMAGENAME}:${VERSION2}-latest"
+ PUSHTAGS="${REPO}/${IMAGENAME}:${VERSION}-SNAPSHOT-${TIMESTAMP}Z ${REPO}/${IMAGENAME}:${VERSION} ${REPO}/${IMAGENAME}:latest"
for NEWTAG in ${PUSHTAGS}
do
echo "tagging ${OLDTAG} to ${NEWTAG}"