X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=deliveries%2Fos_docker_push.sh;h=1d1f3293fe3eeb69a463cd8c064cdba8dfadd103;hb=fad2f32ea9b857a271383f71f3bfa713ba5a31e3;hp=39035199d1ec216b83fa46df8242f15efe7f8147;hpb=21a8761f684745bb300e075c7e98ad897ace9eed;p=portal.git diff --git a/deliveries/os_docker_push.sh b/deliveries/os_docker_push.sh index 39035199..1d1f3293 100755 --- a/deliveries/os_docker_push.sh +++ b/deliveries/os_docker_push.sh @@ -6,6 +6,9 @@ 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" @@ -13,7 +16,11 @@ if [ -z "$PORTAL_VERSION" ]; then fi TIMESTAMP=$(date +%C%y%m%dT%H%M%S) -export VERSION="${PORTAL_VERSION}-${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