blob: 0978ad834412c551a1b72c976d5e532eacdc2b41 [file] [log] [blame]
talasila91d90792017-02-17 09:31:29 -05001#!/bin/bash
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -04002# Builds and pushes SNAPSHOT versions of Portal images
talasila91d90792017-02-17 09:31:29 -05003
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -04004# be verbose
5set -x
talasila560a5cc2017-02-17 13:39:09 -05006
st782s21a87612018-01-30 17:29:36 -05007# Establish environment variables
8source $(dirname $0)/.env
9
10if [ -z "$PORTAL_VERSION" ]; then
11 echo "PORTAL_VERSION not set"
12 exit 1
13fi
14
talasila967a54a2017-03-10 12:18:42 -050015TIMESTAMP=$(date +%C%y%m%dT%H%M%S)
Kishore Reddy, Gujja (kg811t)99b98292018-03-27 17:09:48 -040016# commenting the following two configurations as lf team preferred the uncommented format below
17#export VERSION="${PORTAL_VERSION}-${TIMESTAMP}"
18#export LATEST="latest"
19
20export VERSION="${PORTAL_VERSION}-STAGING-${TIMESTAMP}"
21export LATEST="${PORTAL_VERSION}-STAGING-latest"
talasila560a5cc2017-02-17 13:39:09 -050022
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040023exec ./os_docker_base.sh