Merge "Portal Spring Boot Development"
[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
10 if [ -z "$PORTAL_VERSION" ]; then
11     echo "PORTAL_VERSION not set"
12     exit 1
13 fi
14
15 TIMESTAMP=$(date +%C%y%m%dT%H%M%S)
16 # commenting the following two configurations as lf team preferred the uncommented format below
17 #export VERSION="${PORTAL_VERSION}-${TIMESTAMP}"
18 #export LATEST="latest"
19
20 export VERSION="${PORTAL_VERSION}-STAGING-${TIMESTAMP}"
21 export LATEST="${PORTAL_VERSION}-STAGING-latest"
22
23 exec ./os_docker_base.sh