blob: 1fb8a9a564d9898c6639658c8dd0ba573b84589d [file] [log] [blame]
talasilab10edf92017-02-22 11:02:09 -05001#!/bin/bash
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -04002# Builds and pushes STAGING versions of Portal images
talasilab10edf92017-02-22 11:02:09 -05003
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -04004# be verbose
5set -x
talasilab10edf92017-02-22 11:02: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)
Manoop Talasila378780d2018-05-07 17:37:19 -040019export VERSION="${PORTAL_VERSION}-${TIMESTAMP}"
20export LATEST="${PORTAL_VERSION}"
talasilab10edf92017-02-22 11:02:09 -050021
Sudarshan Kumar8e83c252020-02-18 16:16:26 +053022./os_docker_base.sh $1