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 |
| 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) | 2845910 | 2018-05-14 17:19:51 -0400 | [diff] [blame] | 16 | export VERSION="${PORTAL_VERSION}-STAGING-${TIMESTAMP}" |
| 17 | export LATEST="${PORTAL_VERSION}-STAGING-latest" |
talasila | b10edf9 | 2017-02-22 11:02:09 -0500 | [diff] [blame] | 18 | |
Christopher Lott (cl778h) | 978dbcf | 2017-08-23 18:27:19 -0400 | [diff] [blame] | 19 | exec ./os_docker_base.sh |