summaryrefslogtreecommitdiffstats
path: root/jjb/include-docker-push.sh
blob: 929b6a25f45a27e48f36920d87f0e1245e92e0f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

DOCKER_REPOSITORY="nexus3.openecomp.org:10003"
SEARCH="aai-service";

if [[ $PROJECT =~ $SEARCH ]] ; then
    docker push $DOCKER_REPOSITORY/openecomp/ajsc-aai:latest;
else
    # 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