#!/bin/bash
+# Builds and pushes SNAPSHOT versions of Portal images
-./run.sh
+# be verbose
+set -x
-REPO="nexus3.openecomp.org:10003"
+# Establish environment variables
+source $(dirname $0)/.env
-APPS="${REPO}/openecomp/portalapps:1.0.0"
-DB="${REPO}/openecomp/portaldb:1.0.0"
+if [ -z "$PORTAL_VERSION" ]; then
+ echo "PORTAL_VERSION not set"
+ exit 1
+fi
-# docker login nexus3.openecomp.org:10003
+TIMESTAMP=$(date +%C%y%m%dT%H%M%S)
+export VERSION="${PORTAL_VERSION}-${TIMESTAMP}"
+export LATEST="latest"
-# tag
-docker tag ep:1610-1 ${APPS}
-docker tag ecompdb:portal ${DB}
-
-# push
-docker push ${APPS}
-docker push ${DB}
\ No newline at end of file
+exec ./os_docker_base.sh