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 "pushing error and audit log changes for portal"
[portal.git]
/
deliveries
/
os_docker_push.sh
diff --git
a/deliveries/os_docker_push.sh
b/deliveries/os_docker_push.sh
index
30bd3dc
..
1d1f329
100755
(executable)
--- a/
deliveries/os_docker_push.sh
+++ b/
deliveries/os_docker_push.sh
@@
-4,8
+4,23
@@
# be verbose
set -x
# be verbose
set -x
+# Establish environment variables
+source $(dirname $0)/.env
+if [ $1 ]; then
+ source $(dirname $0)/$1
+fi
+
+if [ -z "$PORTAL_VERSION" ]; then
+ echo "PORTAL_VERSION not set"
+ exit 1
+fi
+
TIMESTAMP=$(date +%C%y%m%dT%H%M%S)
TIMESTAMP=$(date +%C%y%m%dT%H%M%S)
-export VERSION="1.3.0-SNAPSHOT-${TIMESTAMP}"
-export LATEST="latest"
+# commenting the following two configurations as lf team preferred the uncommented format below
+#export VERSION="${PORTAL_VERSION}-${TIMESTAMP}"
+#export LATEST="latest"
+
+export VERSION="${PORTAL_VERSION}-STAGING-${TIMESTAMP}"
+export LATEST="${PORTAL_VERSION}-STAGING-latest"
-exec ./os_docker_base.sh
+./os_docker_base.sh $1