talasila | b10edf9 | 2017-02-22 11:02:09 -0500 | [diff] [blame] | 1 | #!/bin/bash |
Christopher Lott (cl778h) | 978dbcf | 2017-08-23 18:27:19 -0400 | [diff] [blame] | 2 | # Builds and pushes STAGING versions of Portal images |
talasila | b10edf9 | 2017-02-22 11:02:09 -0500 | [diff] [blame] | 3 | |
Christopher Lott (cl778h) | 978dbcf | 2017-08-23 18:27:19 -0400 | [diff] [blame] | 4 | # be verbose |
5 | set -x | ||||
talasila | b10edf9 | 2017-02-22 11:02:09 -0500 | [diff] [blame] | 6 | |
st782s | 21a8761 | 2018-01-30 17:29:36 -0500 | [diff] [blame] | 7 | # Establish environment variables |
8 | source $(dirname $0)/.env | ||||
Sudarshan Kumar | 8e83c25 | 2020-02-18 16:16:26 +0530 | [diff] [blame] | 9 | if [ $1 ]; then |
10 | source $(dirname $0)/$1 | ||||
11 | fi | ||||
st782s | 21a8761 | 2018-01-30 17:29:36 -0500 | [diff] [blame] | 12 | |
13 | if [ -z "$PORTAL_VERSION" ]; then | ||||
14 | echo "PORTAL_VERSION not set" | ||||
15 | exit 1 | ||||
16 | fi | ||||
17 | |||||
talasila | 967a54a | 2017-03-10 12:18:42 -0500 | [diff] [blame] | 18 | TIMESTAMP=$(date +%C%y%m%dT%H%M%S) |
Manoop Talasila | 378780d | 2018-05-07 17:37:19 -0400 | [diff] [blame] | 19 | export VERSION="${PORTAL_VERSION}-${TIMESTAMP}" |
20 | export LATEST="${PORTAL_VERSION}" | ||||
talasila | b10edf9 | 2017-02-22 11:02:09 -0500 | [diff] [blame] | 21 | |
Sudarshan Kumar | 8e83c25 | 2020-02-18 16:16:26 +0530 | [diff] [blame] | 22 | ./os_docker_base.sh $1 |