summaryrefslogtreecommitdiffstats
path: root/dcae-demo-controller/src/main/docker-build
diff options
context:
space:
mode:
Diffstat (limited to 'dcae-demo-controller/src/main/docker-build')
-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