Sai Gandham | 6611834 | 2018-04-04 15:33:05 -0500 | [diff] [blame] | 1 | # |
| 2 | # Docker push Script. Reads all the components generated by install, on per-version basis |
| 3 | # |
| 4 | |
| 5 | ORG=onap |
| 6 | PROJECT=aaf |
| 7 | DOCKER_REPOSITORY=nexus3.onap.org:10003 |
| 8 | VERSION=2.1.0-SNAPSHOT |
| 9 | # TODO add ability to do DEBUG settings |
| 10 | |
| 11 | if ["$1" == ""]; then |
| 12 | AAF_COMPONENTS=`ls ../aaf_*HOT/bin | grep -v '\.'` |
| 13 | else |
| 14 | AAF_COMPONENTS=$1 |
| 15 | fi |
| 16 | |
| 17 | for AAF_COMPONENT in ${AAF_COMPONENTS}; do |
| 18 | docker push ${DOCKER_REPOSITORY}/${ORG}/${PROJECT}/aaf_${AAF_COMPONENT}:${VERSION} |
| 19 | |
| 20 | done |