Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | # |
| 3 | echo '============== CALLING SCRIPT TO CREATE DOCKER IMAGES =================' |
| 4 | cp $WORKSPACE/docker/* . |
Michal Jagiello | b4f98de | 2023-02-01 13:25:41 +0000 | [diff] [blame] | 5 | docker -D build --no-cache -t onap/testsuite . |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 6 | export REPO="nexus3.onap.org:10003" |
Gary Wu | 22d037a | 2019-05-08 21:24:46 -0700 | [diff] [blame] | 7 | |
| 8 | DATETIME_STAMP=$(date +%Y%m%dT%H%M%S) |
| 9 | STAGING_TAG=${base_version}-STAGING-${DATETIME_STAMP}Z |
| 10 | |
| 11 | for tag in $tags $STAGING_TAG |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 12 | do |
Gary Wu | 6dc53ad | 2018-04-04 12:27:38 -0700 | [diff] [blame] | 13 | docker tag onap/testsuite:latest $REPO/onap/testsuite:$tag |
| 14 | docker push $REPO/onap/testsuite:$tag |
Jerry Flood | ffab4f7 | 2017-05-02 16:00:03 -0400 | [diff] [blame] | 15 | done |