Code Review
/
portal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Fixed Userbar broken user image"
[portal.git]
/
deliveries
/
os_docker_push.sh
diff --git
a/deliveries/os_docker_push.sh
b/deliveries/os_docker_push.sh
old mode 100644
(file)
new mode 100755
(executable)
index
e19a360
..
1d1f329
--- a/
deliveries/os_docker_push.sh
+++ b/
deliveries/os_docker_push.sh
@@
-1,16
+1,26
@@
#!/bin/bash
#!/bin/bash
+# Builds and pushes SNAPSHOT versions of Portal images
-REPO="nexus3.openecomp.org:10003"
+# be verbose
+set -x
-APPS="${REPO}/openecomp/portalapps:1.0.0"
-DB="${REPO}/openecomp/portaldb:1.0.0"
+# Establish environment variables
+source $(dirname $0)/.env
+if [ $1 ]; then
+ source $(dirname $0)/$1
+fi
-# docker login nexus3.openecomp.org:10003
+if [ -z "$PORTAL_VERSION" ]; then
+ echo "PORTAL_VERSION not set"
+ exit 1
+fi
-# tag
-docker tag ep:1610-1 ${APPS}
-docker tag ecompdb:portal ${DB}
+TIMESTAMP=$(date +%C%y%m%dT%H%M%S)
+# commenting the following two configurations as lf team preferred the uncommented format below
+#export VERSION="${PORTAL_VERSION}-${TIMESTAMP}"
+#export LATEST="latest"
-# push
-docker push ${APPS}
-docker push ${DB}
\ No newline at end of file
+export VERSION="${PORTAL_VERSION}-STAGING-${TIMESTAMP}"
+export LATEST="${PORTAL_VERSION}-STAGING-latest"
+
+./os_docker_base.sh $1