diff options
author | Lusheng Ji <lji@research.att.com> | 2018-04-02 22:32:15 -0400 |
---|---|---|
committer | Lusheng Ji <lji@research.att.com> | 2018-04-02 22:32:23 -0400 |
commit | ddce1db0b9b2e8429e8ead46e3966abe7d92e1c9 (patch) | |
tree | bd1d26ef606becbc754d8ae14f69bab9e6f4dcca | |
parent | 5a2c655866279df5547c2d8b8159afeceb285ee9 (diff) |
Fix docker tag based on CIMAN-132
Issue-ID: DCAEGEN2-206
Change-Id: I9948181ab9037323d88bf1fbbf5a0ad7412c0493
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 ae1fd65..3190531 100755 --- a/mvn-phase-script.sh +++ b/mvn-phase-script.sh @@ -237,7 +237,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}" @@ -280,7 +280,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}" |