summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Lund <lund@research.att.com>2017-03-09 20:39:51 +0000
committerCarsten Lund <lund@research.att.com>2017-03-09 20:39:51 +0000
commite7bfecbd3840ea7e68993ea89f2ab6d1a65659f0 (patch)
treebb1195da29c2321bcf34d185696888836c4862db
parenta9813da32883f25dfd5cb20220b5bc892dc345c4 (diff)
[DCAE-1] Added the work STAGING to docker version
Change-Id: I0b776418693699d55cf260cec98ea19872380c7e Signed-off-by: Carsten Lund <lund@research.att.com>
-rw-r--r--dcae-demo-controller/src/main/docker-build/push.sh10
1 files 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