blob: 2ac64365e1b1cf4c76136c314311ce11d232624f [file] [log] [blame]
#!/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