summaryrefslogtreecommitdiffstats
path: root/docker_build.sh
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2017-03-15 16:12:02 -0400
committerPamela Dragosh <pdragosh@research.att.com>2017-03-15 16:12:17 -0400
commit2fc2222ac3d420c93f6ce49bc0f3951e822d5342 (patch)
tree92bc814239a850f16b1fa01cc7c45555604a3f30 /docker_build.sh
parent490a3705db001e2d5c022606eee71acd35d20ef5 (diff)
need version.properties
Change-Id: I0df86bbb80535584a89e46c8b4cfddca18d2c3bd Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'docker_build.sh')
-rwxr-xr-xdocker_build.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/docker_build.sh b/docker_build.sh
index 51a6bb1d..f4cf2f4d 100755
--- a/docker_build.sh
+++ b/docker_build.sh
@@ -4,6 +4,7 @@ echo '============== STARTING SCRIPT TO BUILD DOCKER IMAGES ================='
DOCKER_REPOSITORY=nexus3.openecomp.org:10003
MVN_VERSION=$(cat target/version)
+MVN_VERSION="${MVN_VERSION}-STAGING"
TIMESTAMP=$(date -u +%Y%m%dT%H%M%S)
echo $DOCKER_REPOSITORY
@@ -20,6 +21,7 @@ for image in policy-os policy-nexus policy-db policy-base policy-drools policy-p
TAGS="--tag openecomp/policy/${image}:latest"
TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/openecomp/policy/${image}:latest"
+ TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/openecomp/policy/${image}:${MVN_VERSION}-latest"
TAGS="${TAGS} --tag openecomp/policy/${image}:${MVN_VERSION}-${TIMESTAMP}"
TAGS="${TAGS} --tag ${DOCKER_REPOSITORY}/openecomp/policy/${image}:${MVN_VERSION}-${TIMESTAMP}"
@@ -32,5 +34,6 @@ done
for image in policy-nexus policy-db policy-drools policy-pe; do
echo "Pushing $image"
docker push ${DOCKER_REPOSITORY}/openecomp/policy/$image:latest
+# docker push ${DOCKER_REPOSITORY}/openecomp/policy/$image:${MVN_VERSION}-latest
docker push ${DOCKER_REPOSITORY}/openecomp/policy/$image:${MVN_VERSION}-${TIMESTAMP}
done