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 |
| 9 | |
| 10 | if [ -z "$PORTAL_VERSION" ]; then |
| 11 | echo "PORTAL_VERSION not set" |
| 12 | exit 1 |
| 13 | fi |
| 14 | |
talasila | 967a54a | 2017-03-10 12:18:42 -0500 | [diff] [blame] | 15 | TIMESTAMP=$(date +%C%y%m%dT%H%M%S) |
Kishore Reddy, Gujja (kg811t) | 99b9829 | 2018-03-27 17:09:48 -0400 | [diff] [blame] | 16 | # commenting the following two configurations as lf team preferred the uncommented format below |
| 17 | #export VERSION="${PORTAL_VERSION}-${TIMESTAMP}" |
| 18 | #export LATEST="latest" |
| 19 | |
| 20 | export VERSION="${PORTAL_VERSION}-STAGING-${TIMESTAMP}" |
| 21 | export LATEST="${PORTAL_VERSION}-STAGING-latest" |
talasila | 560a5cc | 2017-02-17 13:39:09 -0500 | [diff] [blame] | 22 | |
Christopher Lott (cl778h) | 978dbcf | 2017-08-23 18:27:19 -0400 | [diff] [blame] | 23 | exec ./os_docker_base.sh |