blob: 1d1f3293fe3eeb69a463cd8c064cdba8dfadd103 [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
Sudarshan Kumar8e83c252020-02-18 16:16:26 +05309if [ $1 ]; then
10 source $(dirname $0)/$1
11fi
st782s21a87612018-01-30 17:29:36 -050012
13if [ -z "$PORTAL_VERSION" ]; then
14 echo "PORTAL_VERSION not set"
15 exit 1
16fi
17
talasila967a54a2017-03-10 12:18:42 -050018TIMESTAMP=$(date +%C%y%m%dT%H%M%S)
Kishore Reddy, Gujja (kg811t)99b98292018-03-27 17:09:48 -040019# commenting the following two configurations as lf team preferred the uncommented format below
20#export VERSION="${PORTAL_VERSION}-${TIMESTAMP}"
21#export LATEST="latest"
22
23export VERSION="${PORTAL_VERSION}-STAGING-${TIMESTAMP}"
24export LATEST="${PORTAL_VERSION}-STAGING-latest"
talasila560a5cc2017-02-17 13:39:09 -050025
Sudarshan Kumar8e83c252020-02-18 16:16:26 +053026./os_docker_base.sh $1