X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=deliveries%2Fos_docker_push.sh;h=1d1f3293fe3eeb69a463cd8c064cdba8dfadd103;hb=d7f3b463c9f0f11ceb0aad255f564b02c22ab978;hp=30bd3dc70e47373059f9d0551aac74e1f7629fc4;hpb=51d83152697da4f2ef2242471ee43f36e6b64300;p=portal.git diff --git a/deliveries/os_docker_push.sh b/deliveries/os_docker_push.sh index 30bd3dc7..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.3.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