aboutsummaryrefslogtreecommitdiffstats
path: root/docker_merge.sh
diff options
context:
space:
mode:
authorPamela Dragosh <pdragosh@research.att.com>2017-03-16 11:02:05 -0400
committerPamela Dragosh <pdragosh@research.att.com>2017-03-16 11:02:13 -0400
commitceba3d8388f059e3a2463255596c791c34fbb98b (patch)
tree2c0f458f7311bd2fd491fedde3578aeebbb5e832 /docker_merge.sh
parent2fc2222ac3d420c93f6ce49bc0f3951e822d5342 (diff)
getting better requirements
Change-Id: I47ba52cb95a1bbe20eca81854109c0ef6db0b808 Signed-off-by: Pamela Dragosh <pdragosh@research.att.com>
Diffstat (limited to 'docker_merge.sh')
-rwxr-xr-xdocker_merge.sh20
1 files changed, 13 insertions, 7 deletions
diff --git a/docker_merge.sh b/docker_merge.sh
index 8d5eef7d..f0acd699 100755
--- a/docker_merge.sh
+++ b/docker_merge.sh
@@ -1,8 +1,13 @@
#!/bin/bash
#
echo '============== STARTING SCRIPT TO BUILD DOCKER IMAGES ================='
-
+#
+# THIS SHOULD POINT TO THE SNAPSHOT repo
+#
DOCKER_REPOSITORY=nexus3.openecomp.org:10003
+#
+# Should be appended with -SNAPSHOT
+#
MVN_VERSION=$(cat target/version)
TIMESTAMP=$(date -u +%Y%m%dT%H%M%S)
@@ -20,15 +25,16 @@ 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}"
echo $TAGS
done
-#for image in policy-nexus policy-db policy-drools policy-pe; do
-# echo "Pushing $image"
-## docker push ${DOCKER_REPOSITORY}/openecomp/policy/$image:${MVN_VERSION}-latest
-# docker push ${DOCKER_REPOSITORY}/openecomp/policy/$image:${MVN_VERSION}-${TIMESTAMP}
-#done
+#
+# NO latest tag. SNAPSHOTS are for internal testing
+#
+for image in policy-nexus policy-db policy-drools policy-pe; do
+ echo "Pushing $image"
+ docker push ${DOCKER_REPOSITORY}/openecomp/policy/$image:${MVN_VERSION}-${TIMESTAMP}
+done