X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=deliveries%2Fos_docker_push.sh;h=0978ad834412c551a1b72c976d5e532eacdc2b41;hb=83de9db899ebf7ec87220670d6f5cf35a10d087b;hp=eb663b8345555a7cb9ec48e0153fc1a76af16270;hpb=978dbcf0a196acbafad72fe1e2478ec0e384f02f;p=portal.git diff --git a/deliveries/os_docker_push.sh b/deliveries/os_docker_push.sh index eb663b83..0978ad83 100755 --- a/deliveries/os_docker_push.sh +++ b/deliveries/os_docker_push.sh @@ -4,8 +4,20 @@ # 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.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