From e7bfecbd3840ea7e68993ea89f2ab6d1a65659f0 Mon Sep 17 00:00:00 2001 From: Carsten Lund Date: Thu, 9 Mar 2017 20:39:51 +0000 Subject: [DCAE-1] Added the work STAGING to docker version Change-Id: I0b776418693699d55cf260cec98ea19872380c7e Signed-off-by: Carsten Lund --- dcae-demo-controller/src/main/docker-build/push.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dcae-demo-controller/src/main/docker-build/push.sh b/dcae-demo-controller/src/main/docker-build/push.sh index 04330cd..649c9fa 100644 --- a/dcae-demo-controller/src/main/docker-build/push.sh +++ b/dcae-demo-controller/src/main/docker-build/push.sh @@ -14,15 +14,17 @@ 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 + TAG1=$DOCKER_REG/openecomp/dcae-controller:$VERSION-$(date +%Y%m%dT%H%M%S) + docker tag dcae-controller:$VERSION $TAG1 + docker push $TAG1 ;; *) + TAG1=$DOCKER_REG/openecomp/dcae-controller:$VERSION-STAGING-$(date +%Y%m%dT%H%M%S) + docker tag dcae-controller:$VERSION $TAG1 + docker push $TAG1 TAG2=$DOCKER_REG/openecomp/dcae-controller:latest docker tag dcae-controller:$VERSION $TAG2 docker push $TAG2 -- cgit 1.2.3-korg