X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=deliveries%2Fos_docker_push.sh;h=2c41151da6d5ebb913924450a1471ce477e65a02;hb=a0b9152f19c4f8dbd925635129d75af9785a1d4a;hp=165d05d6ab61ecadf8e88022eedfe017a93712cd;hpb=1ba915bb1d5d94320278718e014737ade8ff6750;p=portal.git diff --git a/deliveries/os_docker_push.sh b/deliveries/os_docker_push.sh old mode 100644 new mode 100755 index 165d05d6..2c41151d --- a/deliveries/os_docker_push.sh +++ b/deliveries/os_docker_push.sh @@ -1,26 +1,40 @@ #!/bin/bash +# Establish environment variables +source $(dirname $0)/os_settings.sh + ./run.sh -REPO="nexus3.openecomp.org:10003" +REPO="nexus3.onap.org:10003" -VERSION="1.0.0" +TIMESTAMP=$(date +%C%y%m%dT%H%M%S) +VERSION="1.1.0-SNAPSHOT-${TIMESTAMP}" LATEST="latest" APPS_VERSION="${REPO}/openecomp/portalapps:${VERSION}" DB_VERSION="${REPO}/openecomp/portaldb:${VERSION}" +WMS_VERSION="${REPO}/openecomp/portalwms:${VERSION}" APPS_LATEST="${REPO}/openecomp/portalapps:${LATEST}" DB_LATEST="${REPO}/openecomp/portaldb:${LATEST}" +WMS_LATEST="${REPO}/openecomp/portalwms:${LATEST}" + +# tag versions +docker tag ${EP_IMG_NAME} ${APPS_VERSION} +docker tag ${EP_IMG_NAME} ${APPS_LATEST} -# tag version -docker tag ep:1610-1 ${APPS_VERSION} -docker tag ecompdb:portal ${DB_VERSION} -docker tag ep:1610-1 ${APPS_LATEST} -docker tag ecompdb:portal ${DB_LATEST} +docker tag ${DB_IMG_NAME} ${DB_VERSION} +docker tag ${DB_IMG_NAME} ${DB_LATEST} + +docker tag ${WMS_IMG_NAME} ${WMS_VERSION} +docker tag ${WMS_IMG_NAME} ${WMS_LATEST} # push docker push ${APPS_VERSION} -docker push ${DB_VERSION} docker push ${APPS_LATEST} -docker push ${DB_LATEST} \ No newline at end of file + +docker push ${DB_VERSION} +docker push ${DB_LATEST} + +docker push ${WMS_VERSION} +docker push ${WMS_LATEST}