diff options
author | Lusheng Ji <lji@research.att.com> | 2018-04-02 22:36:03 -0400 |
---|---|---|
committer | Lusheng Ji <lji@research.att.com> | 2018-04-02 22:36:12 -0400 |
commit | de4f9934595ff87da34d279bee77b2e50ac0acd8 (patch) | |
tree | 31a9475300e4e0560af1709526461e605dd36cc7 | |
parent | ca68260ae87a5e1107800fe433b3f06611c7a299 (diff) |
Fix docker tag based on CIMAN-132
Issue-ID: DCAEGEN2-206
Change-Id: I81973cf4c30e737a7246ccefc5189e40116e5424
Signed-off-by: Lusheng Ji <lji@research.att.com>
-rwxr-xr-x | mvn-phase-script.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mvn-phase-script.sh b/mvn-phase-script.sh index 9e687c9..391ac0a 100755 --- a/mvn-phase-script.sh +++ b/mvn-phase-script.sh @@ -132,7 +132,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}" @@ -175,7 +175,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}" |