Code Review
/
portal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Added the link to the architecture documentation
[portal.git]
/
deliveries
/
os_docker_release.sh
diff --git
a/deliveries/os_docker_release.sh
b/deliveries/os_docker_release.sh
old mode 100644
(file)
new mode 100755
(executable)
index
6bcbfb6
..
3ff88b2
--- a/
deliveries/os_docker_release.sh
+++ b/
deliveries/os_docker_release.sh
@@
-1,18
+1,19
@@
#!/bin/bash
#!/bin/bash
+# Builds and pushes STAGING versions of Portal images
-./run.sh
+# be verbose
+set -x
-REPO="nexus3.openecomp.org:10002"
+# 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:10002
+TIMESTAMP=$(date +%C%y%m%dT%H%M%S)
+export VERSION="${PORTAL_VERSION}-${TIMESTAMP}"
+export LATEST="${PORTAL_VERSION}"
-# 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