talasila | 91d9079 | 2017-02-17 09:31:29 -0500 | [diff] [blame] | 1 | #!/bin/bash |
Christopher Lott (cl778h) | 978dbcf | 2017-08-23 18:27:19 -0400 | [diff] [blame] | 2 | # Builds and pushes SNAPSHOT versions of Portal images |
talasila | 91d9079 | 2017-02-17 09:31:29 -0500 | [diff] [blame] | 3 | |
Christopher Lott (cl778h) | 978dbcf | 2017-08-23 18:27:19 -0400 | [diff] [blame] | 4 | # be verbose |
| 5 | set -x |
talasila | 560a5cc | 2017-02-17 13:39: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) |
Kishore Reddy, Gujja (kg811t) | 99b9829 | 2018-03-27 17:09:48 -0400 | [diff] [blame] | 19 | # commenting the following two configurations as lf team preferred the uncommented format below |
| 20 | #export VERSION="${PORTAL_VERSION}-${TIMESTAMP}" |
| 21 | #export LATEST="latest" |
| 22 | |
| 23 | export VERSION="${PORTAL_VERSION}-STAGING-${TIMESTAMP}" |
| 24 | export LATEST="${PORTAL_VERSION}-STAGING-latest" |
talasila | 560a5cc | 2017-02-17 13:39:09 -0500 | [diff] [blame] | 25 | |
Sudarshan Kumar | 8e83c25 | 2020-02-18 16:16:26 +0530 | [diff] [blame] | 26 | ./os_docker_base.sh $1 |