summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Lund <lund@research.att.com>2017-03-08 15:22:09 +0000
committerCarsten Lund <lund@research.att.com>2017-03-08 15:22:09 +0000
commit44a42d01d082454867abec33e6f1ac7620bbe826 (patch)
tree3cece4939607e001419b9895f051ccb8468a5fa6
parent94c8cd9f47c64fb407eb5ef64df9e489aeb2cc19 (diff)
[DCAE-1] Changed docker push to updated docker
Change-Id: I0ba1eaf9de4d3d6a1ed8288024b8cee5bc8b1a3d Signed-off-by: Carsten Lund <lund@research.att.com>
-rw-r--r--dcae-demo-controller/src/main/docker-build/push.sh17
1 files changed, 16 insertions, 1 deletions
diff --git a/dcae-demo-controller/src/main/docker-build/push.sh b/dcae-demo-controller/src/main/docker-build/push.sh
index 5026c1d..04330cd 100644
--- a/dcae-demo-controller/src/main/docker-build/push.sh
+++ b/dcae-demo-controller/src/main/docker-build/push.sh
@@ -9,8 +9,23 @@ 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/dcae-controller:$VERSION
+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
+