aboutsummaryrefslogtreecommitdiffstats
path: root/mvn-phase-lib.sh
diff options
context:
space:
mode:
authorLusheng Ji <lji@research.att.com>2018-04-02 22:39:26 -0400
committerLusheng Ji <lji@research.att.com>2018-04-02 22:39:55 -0400
commit653eca543f6122788b65738919767f4225ec9358 (patch)
tree0fccc9b6028a767586d10aa1434bdc929f9926e9 /mvn-phase-lib.sh
parent522eeede9c6c4e52acb8576bf91e933753a5b8c9 (diff)
Fix docker tag based on CIMAN-132
Issue-ID: DCAEGEN2-206 Change-Id: I9bdfc4f58e80b047d205edfa5001b533391e5f1c Signed-off-by: Lusheng Ji <lji@research.att.com>
Diffstat (limited to 'mvn-phase-lib.sh')
-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}"