Deliver centralized role management feature
[portal.git] / deliveries / os_docker_push.sh
old mode 100644 (file)
new mode 100755 (executable)
index 165d05d..eb663b8
@@ -1,26 +1,11 @@
 #!/bin/bash
+# Builds and pushes SNAPSHOT versions of Portal images
 
-./run.sh
+# be verbose
+set -x
 
-REPO="nexus3.openecomp.org:10003"
+TIMESTAMP=$(date +%C%y%m%dT%H%M%S)
+export VERSION="1.1.0-SNAPSHOT-${TIMESTAMP}"
+export LATEST="latest"
 
-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
+exec ./os_docker_base.sh