Upgrade to common-packer
[ci-management.git] / jjb / include-docker-push.sh
old mode 100644 (file)
new mode 100755 (executable)
index 1a89fe7..c0394de
@@ -24,14 +24,17 @@ STAGING_TAG=${VERSION}-STAGING-${DATETIME_STAMP};
 # Set REPO_PATH variable
 
 if [ ! -z "$DOCKER_IMAGE_NAME" ]; then
-    REPO_PATH=$DOCKER_REPOSITORY/${$DOCKER_IMAGE_NAME};
+    REPO_PATH=$DOCKER_REPOSITORY/${DOCKER_IMAGE_NAME};
+
+    # tag image with nexus3 proxy prefix
+    docker tag ${DOCKER_IMAGE_NAME} $REPO_PATH
 elif [[ $PROJECT =~ $SEARCH ]] ; then
-    REPO_PATH=$DOCKER_REPOSITORY/openecomp/ajsc-aai;
+    REPO_PATH=$DOCKER_REPOSITORY/onap/ajsc-aai;
 else
     # Cut the prefix aai/ in example aai/model-loader
     DOCKER_REPO_NAME=$(echo ${PROJECT} | cut -d"/" -f2-);
 
-    REPO_PATH=$DOCKER_REPOSITORY/openecomp/${DOCKER_REPO_NAME};
+    REPO_PATH=$DOCKER_REPOSITORY/onap/${DOCKER_REPO_NAME};
 fi