diff options
author | Venkata Harish K Kajur <vk250x@att.com> | 2017-02-24 14:28:27 +0000 |
---|---|---|
committer | Venkata Harish K Kajur <vk250x@att.com> | 2017-02-24 19:11:21 +0000 |
commit | 5d28ee8c16551dfb633b67184eb5e152628bb655 (patch) | |
tree | 3a2de16040343f1262361cee542900f0f6745715 /jjb/include-docker-push.sh | |
parent | c27b091032fcccb928887467ed711b036cc034bf (diff) |
Change the docker push to be generic
Change-Id: I2711dd352edcad1896809ef81259a08c9d9dbabb
Signed-off-by: Venkata Harish K Kajur <vk250x@att.com>
Diffstat (limited to 'jjb/include-docker-push.sh')
-rw-r--r-- | jjb/include-docker-push.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/jjb/include-docker-push.sh b/jjb/include-docker-push.sh index ec78d9ab1..929b6a25f 100644 --- a/jjb/include-docker-push.sh +++ b/jjb/include-docker-push.sh @@ -6,5 +6,7 @@ SEARCH="aai-service"; if [[ $PROJECT =~ $SEARCH ]] ; then docker push $DOCKER_REPOSITORY/openecomp/ajsc-aai:latest; else - docker push $DOCKER_REPOSITORY/openecomp/model-loader:latest; + # Cut the prefix aai/ in example aai/model-loader + DOCKER_REPO_NAME=$(echo ${PROJECT} | cut -d"/" -f2-); + docker push $DOCKER_REPOSITORY/openecomp/${DOCKER_REPO_NAME}:latest; fi |