blob: 2a22fef8010e1923c3a7b9af04946b4af964acdd [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
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)28459102018-05-14 17:19:51 -040016export VERSION="${PORTAL_VERSION}-STAGING-${TIMESTAMP}"
17export LATEST="${PORTAL_VERSION}-STAGING-latest"
talasilab10edf92017-02-22 11:02:09 -050018
Christopher Lott (cl778h)978dbcf2017-08-23 18:27:19 -040019exec ./os_docker_base.sh