summaryrefslogtreecommitdiffstats
path: root/deliveries
diff options
context:
space:
mode:
authortalasila <talasila@research.att.com>2017-02-22 12:03:21 -0500
committertalasila <talasila@research.att.com>2017-02-22 12:03:49 -0500
commit1ba915bb1d5d94320278718e014737ade8ff6750 (patch)
tree9b574ac2b75e1ffc866d560f868238e7e4feb02e /deliveries
parentb10edf91b69598626d6d1628d5ab873261118456 (diff)
latest version is added to docker
Change-Id: I4ed035a361fce3fa80d839e711d313d8e3450d1e Signed-off-by: talasila <talasila@research.att.com>
Diffstat (limited to 'deliveries')
-rw-r--r--deliveries/os_docker_push.sh24
-rw-r--r--deliveries/os_docker_release.sh24
2 files changed, 32 insertions, 16 deletions
diff --git a/deliveries/os_docker_push.sh b/deliveries/os_docker_push.sh
index 40d15cb5..165d05d6 100644
--- a/deliveries/os_docker_push.sh
+++ b/deliveries/os_docker_push.sh
@@ -4,15 +4,23 @@
REPO="nexus3.openecomp.org:10003"
-APPS="${REPO}/openecomp/portalapps:1.0.0"
-DB="${REPO}/openecomp/portaldb:1.0.0"
+VERSION="1.0.0"
+LATEST="latest"
-# docker login nexus3.openecomp.org:10003
+APPS_VERSION="${REPO}/openecomp/portalapps:${VERSION}"
+DB_VERSION="${REPO}/openecomp/portaldb:${VERSION}"
-# tag
-docker tag ep:1610-1 ${APPS}
-docker tag ecompdb:portal ${DB}
+APPS_LATEST="${REPO}/openecomp/portalapps:${LATEST}"
+DB_LATEST="${REPO}/openecomp/portaldb:${LATEST}"
+
+# tag version
+docker tag ep:1610-1 ${APPS_VERSION}
+docker tag ecompdb:portal ${DB_VERSION}
+docker tag ep:1610-1 ${APPS_LATEST}
+docker tag ecompdb:portal ${DB_LATEST}
# push
-docker push ${APPS}
-docker push ${DB} \ No newline at end of file
+docker push ${APPS_VERSION}
+docker push ${DB_VERSION}
+docker push ${APPS_LATEST}
+docker push ${DB_LATEST} \ No newline at end of file
diff --git a/deliveries/os_docker_release.sh b/deliveries/os_docker_release.sh
index 6bcbfb66..95b1c80b 100644
--- a/deliveries/os_docker_release.sh
+++ b/deliveries/os_docker_release.sh
@@ -4,15 +4,23 @@
REPO="nexus3.openecomp.org:10002"
-APPS="${REPO}/openecomp/portalapps:1.0.0"
-DB="${REPO}/openecomp/portaldb:1.0.0"
+VERSION="1.0.0"
+LATEST="latest"
-# docker login nexus3.openecomp.org:10002
+APPS_VERSION="${REPO}/openecomp/portalapps:${VERSION}"
+DB_VERSION="${REPO}/openecomp/portaldb:${VERSION}"
-# tag
-docker tag ep:1610-1 ${APPS}
-docker tag ecompdb:portal ${DB}
+APPS_LATEST="${REPO}/openecomp/portalapps:${LATEST}"
+DB_LATEST="${REPO}/openecomp/portaldb:${LATEST}"
+
+# tag version
+docker tag ep:1610-1 ${APPS_VERSION}
+docker tag ecompdb:portal ${DB_VERSION}
+docker tag ep:1610-1 ${APPS_LATEST}
+docker tag ecompdb:portal ${DB_LATEST}
# push
-docker push ${APPS}
-docker push ${DB} \ No newline at end of file
+docker push ${APPS_VERSION}
+docker push ${DB_VERSION}
+docker push ${APPS_LATEST}
+docker push ${DB_LATEST} \ No newline at end of file