summaryrefslogtreecommitdiffstats
path: root/jjb/testsuite/testsuite-docker.sh
blob: 2ac64365e1b1cf4c76136c314311ce11d232624f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/bash
#
echo '============== CALLING SCRIPT TO CREATE DOCKER IMAGES ================='
cp $WORKSPACE/docker/* .
docker -D build --no-cache -t onap/testsuite .
export REPO="nexus3.onap.org:10003"

DATETIME_STAMP=$(date +%Y%m%dT%H%M%S)
STAGING_TAG=${base_version}-STAGING-${DATETIME_STAMP}Z

for tag in $tags $STAGING_TAG
do
  docker tag onap/testsuite:latest $REPO/onap/testsuite:$tag
  docker push $REPO/onap/testsuite:$tag
done