blob: 04330cddc48ddd8e9d421f5eb54b349061539283 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/bash
set -e
set -x
## ensure we are in the right directory.
cd $(dirname $(readlink -e $0))
GITROOT=../../..
VERSION=$(grep version $GITROOT/pom.xml | head -1 | sed 'sX</.*XX' | sed 's/.*>//')
DOCKER_REG=$1
TAG=$DOCKER_REG/openecomp/dcae-controller:$VERSION
docker tag dcae-controller:$VERSION $TAG
docker push $TAG
TAG1=$DOCKER_REG/openecomp/dcae-controller:$VERSION-$(date +%Y%m%dT%H%M%S)
docker tag dcae-controller:$VERSION $TAG1
docker push $TAG1
case $VERSION in
*SNAPSHOT)
echo > /dev/null
;;
*)
TAG2=$DOCKER_REG/openecomp/dcae-controller:latest
docker tag dcae-controller:$VERSION $TAG2
docker push $TAG2
;;
esac
|