X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=deliveries%2Fos_docker_push.sh;h=1d1f3293fe3eeb69a463cd8c064cdba8dfadd103;hb=3c89a5ad1e0d6bbae5e3358e751931f8416ba31b;hp=eb663b8345555a7cb9ec48e0153fc1a76af16270;hpb=978dbcf0a196acbafad72fe1e2478ec0e384f02f;p=portal.git diff --git a/deliveries/os_docker_push.sh b/deliveries/os_docker_push.sh index eb663b83..1d1f3293 100755 --- a/deliveries/os_docker_push.sh +++ b/deliveries/os_docker_push.sh @@ -4,8 +4,23 @@ # be verbose set -x +# Establish environment variables +source $(dirname $0)/.env +if [ $1 ]; then + source $(dirname $0)/$1 +fi + +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.1.0-SNAPSHOT-${TIMESTAMP}" -export LATEST="latest" +# commenting the following two configurations as lf team preferred the uncommented format below +#export VERSION="${PORTAL_VERSION}-${TIMESTAMP}" +#export LATEST="latest" + +export VERSION="${PORTAL_VERSION}-STAGING-${TIMESTAMP}" +export LATEST="${PORTAL_VERSION}-STAGING-latest" -exec ./os_docker_base.sh +./os_docker_base.sh $1