Widget MS startup fix and Onboarding changes
[portal.git] / deliveries / os_docker_push.sh
1 #!/bin/bash
2 # Builds and pushes SNAPSHOT versions of Portal images
3
4 # be verbose
5 set -x
6
7 # Establish environment variables
8 source $(dirname $0)/.env
9 if [ $1 ]; then
10   source $(dirname $0)/$1
11 fi
12
13 if [ -z "$PORTAL_VERSION" ]; then
14     echo "PORTAL_VERSION not set"
15     exit 1
16 fi
17
18 TIMESTAMP=$(date +%C%y%m%dT%H%M%S)
19 # commenting the following two configurations as lf team preferred the uncommented format below
20 #export VERSION="${PORTAL_VERSION}-${TIMESTAMP}"
21 #export LATEST="latest"
22
23 export VERSION="${PORTAL_VERSION}-STAGING-${TIMESTAMP}"
24 export LATEST="${PORTAL_VERSION}-STAGING-latest"
25
26 ./os_docker_base.sh $1