summaryrefslogtreecommitdiffstats
path: root/dcae-demo-controller/src/main/docker-build/push.sh
blob: 5026c1db23a9fdd930594a1cbbb35e198148c20b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

set -e
set -x

## ensure we are in the right directory.
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

docker tag dcae-controller:$VERSION $TAG
docker push $TAG