1.1.0-SNAPSHOT is updated in poms
[portal.git] / deliveries / os_docker_push.sh
1 #!/bin/bash
2
3 ./run.sh
4
5 REPO="nexus3.openecomp.org:10003"
6
7 TIMESTAMP=$(date +%C%y%m%dT%H%M%S)
8 VERSION="1.1.0-SNAPSHOT-${TIMESTAMP}"
9 LATEST="latest"
10
11 APPS_VERSION="${REPO}/openecomp/portalapps:${VERSION}"
12 DB_VERSION="${REPO}/openecomp/portaldb:${VERSION}"
13
14 APPS_LATEST="${REPO}/openecomp/portalapps:${LATEST}"
15 DB_LATEST="${REPO}/openecomp/portaldb:${LATEST}"
16
17 # tag version
18 docker tag ep:1610-1 ${APPS_VERSION}
19 docker tag ecompdb:portal ${DB_VERSION}
20 docker tag ep:1610-1 ${APPS_LATEST}
21 docker tag ecompdb:portal ${DB_LATEST}
22
23 # push
24 docker push ${APPS_VERSION}
25 docker push ${DB_VERSION}
26 docker push ${APPS_LATEST}
27 docker push ${DB_LATEST}