Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 1 | #!/bin/bash |
| 2 | |
| 3 | DOCKER_REPOSITORY="nexus3.openecomp.org:10003" |
| 4 | SEARCH="aai-service"; |
| 5 | |
| 6 | if [[ $PROJECT =~ $SEARCH ]] ; then |
Venkata Harish K Kajur | 6aa6209 | 2017-02-20 21:46:40 +0000 | [diff] [blame] | 7 | docker push $DOCKER_REPOSITORY/openecomp/ajsc-aai:latest; |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 8 | else |
Venkata Harish K Kajur | 5d28ee8 | 2017-02-24 14:28:27 +0000 | [diff] [blame] | 9 | # Cut the prefix aai/ in example aai/model-loader |
| 10 | DOCKER_REPO_NAME=$(echo ${PROJECT} | cut -d"/" -f2-); |
| 11 | docker push $DOCKER_REPOSITORY/openecomp/${DOCKER_REPO_NAME}:latest; |
Venkata Harish K Kajur | baaef36 | 2017-02-20 15:42:02 +0000 | [diff] [blame] | 12 | fi |