blob: 929b6a25f45a27e48f36920d87f0e1245e92e0f4 [file] [log] [blame]
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00001#!/bin/bash
2
3DOCKER_REPOSITORY="nexus3.openecomp.org:10003"
4SEARCH="aai-service";
5
6if [[ $PROJECT =~ $SEARCH ]] ; then
Venkata Harish K Kajur6aa62092017-02-20 21:46:40 +00007 docker push $DOCKER_REPOSITORY/openecomp/ajsc-aai:latest;
Venkata Harish K Kajurbaaef362017-02-20 15:42:02 +00008else
Venkata Harish K Kajur5d28ee82017-02-24 14:28:27 +00009 # 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 Kajurbaaef362017-02-20 15:42:02 +000012fi