diff options
Diffstat (limited to 'dcae-demo-controller')
-rw-r--r-- | dcae-demo-controller/src/main/docker-build/push.sh | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/dcae-demo-controller/src/main/docker-build/push.sh b/dcae-demo-controller/src/main/docker-build/push.sh index 649c9fa..d69fe42 100644 --- a/dcae-demo-controller/src/main/docker-build/push.sh +++ b/dcae-demo-controller/src/main/docker-build/push.sh @@ -8,6 +8,7 @@ cd $(dirname $(readlink -e $0)) GITROOT=../../.. VERSION=$(grep version $GITROOT/pom.xml | head -1 | sed 'sX</.*XX' | sed 's/.*>//') +VERSION2=$(echo $VERSION | cut -d . -f1,2) DOCKER_REG=$1 TAG=$DOCKER_REG/openecomp/dcae-controller:$VERSION @@ -28,6 +29,9 @@ case $VERSION in TAG2=$DOCKER_REG/openecomp/dcae-controller:latest docker tag dcae-controller:$VERSION $TAG2 docker push $TAG2 + TAG3=$DOCKER_REG/openecomp/dcae-controller:$VERSION2-STAGING-latest + docker tag dcae-controller:$VERSION $TAG3 + docker push $TAG3 ;; esac |