blob: ca5e95aba4097f4fa953d2ded97d44beaa2fd103 [file] [log] [blame]
#!/bin/bash
#
echo '============== CALLING SCRIPT TO CREATE DOCKER IMAGES ================='
cp $WORKSPACE/docker/* .
docker -D build -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