diff options
author | Pamela Dragosh <pdragosh@research.att.com> | 2017-03-07 15:39:48 -0500 |
---|---|---|
committer | Pamela Dragosh <pdragosh@research.att.com> | 2017-03-08 11:13:22 -0500 |
commit | 3fe4d9c6105cdd58853ca75a0d7c000600fe2f45 (patch) | |
tree | cc282060e16cdc0d4e0d8d3a62910f3dd452a09f /docker_verify.sh | |
parent | 6f91e0ba8db761cc8ae95c8284091d4fef5e2b48 (diff) |
update docker image tags
Change-Id: I207a68c761ccc2770ac13539595a79f5e176d611
Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'docker_verify.sh')
-rwxr-xr-x | docker_verify.sh | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/docker_verify.sh b/docker_verify.sh index 65019782..a115ce39 100755 --- a/docker_verify.sh +++ b/docker_verify.sh @@ -3,10 +3,12 @@ echo '============== STARTING SCRIPT TO BUILD DOCKER IMAGES =================' DOCKER_REPOSITORY=nexus3.openecomp.org:10003 -DOCKER_VERSION=latest +MVN_VERSION=$(cat target/version) +TIMESTAMP=$(date -u +%Y%m%dT%H%M%S) -export DOCKER_REPOSITORY -export DOCKER_VERSION +echo $DOCKER_REPOSITORY +echo $MVN_VERSION +echo $TIMESTAMP cp policy-pe/* target/policy-pe/ cp policy-drools/* target/policy-drools/ @@ -15,6 +17,11 @@ for image in policy-os policy-nexus policy-db policy-base policy-drools policy-p echo "Building $image" mkdir -p target/$image cp $image/* target/$image - docker build --quiet --tag openecomp/policy/$image:${DOCKER_VERSION} --tag ${DOCKER_REPOSITORY}/openecomp/policy/$image:${DOCKER_VERSION} target/$image - docker images + + TAGS="--tag openecomp/policy/${image}:latest" + TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/openecomp/policy/${image}:latest" + TAGS="${TAGS} --tag openecomp/policy/${image}:${MVN_VERSION}-${TIMESTAMP}" + TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/openecomp/policy/${image}:${MVN_VERSION}-${TIMESTAMP}" + + echo $TAGS done |