diff options
Diffstat (limited to 'deliveries/os_docker_push.sh')
-rwxr-xr-x | deliveries/os_docker_push.sh | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/deliveries/os_docker_push.sh b/deliveries/os_docker_push.sh index 30bd3dc7..39035199 100755 --- a/deliveries/os_docker_push.sh +++ b/deliveries/os_docker_push.sh @@ -4,8 +4,16 @@ # be verbose set -x +# Establish environment variables +source $(dirname $0)/.env + +if [ -z "$PORTAL_VERSION" ]; then + echo "PORTAL_VERSION not set" + exit 1 +fi + TIMESTAMP=$(date +%C%y%m%dT%H%M%S) -export VERSION="1.3.0-SNAPSHOT-${TIMESTAMP}" +export VERSION="${PORTAL_VERSION}-${TIMESTAMP}" export LATEST="latest" exec ./os_docker_base.sh |