latest version is added to docker
[portal.git] / deliveries / os_docker_push.sh
index a58f5aa..165d05d 100644 (file)
@@ -1,7 +1,26 @@
 #!/bin/bash
 
-#docker login
-docker tag ep:1610-1 portalapps:1.0.0
-docker tag ecompdb:portal portaldb:1.0.0
-docker push portalapps:1.0.0
-docker push portaldb:1.0.0
\ No newline at end of file
+./run.sh
+
+REPO="nexus3.openecomp.org:10003"
+
+VERSION="1.0.0"
+LATEST="latest"
+
+APPS_VERSION="${REPO}/openecomp/portalapps:${VERSION}"
+DB_VERSION="${REPO}/openecomp/portaldb:${VERSION}"
+
+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_VERSION}
+docker push ${DB_VERSION}
+docker push ${APPS_LATEST}
+docker push ${DB_LATEST}
\ No newline at end of file