diff --git a/ci/jenkinsfile/publish_docker.groovy b/ci/jenkinsfile/publish_docker.groovy index 08180fab740cc7d0b66659fe3771196bda44fe05..8c6121bec859c7248c613083c0c30d35d9e4836c 100644 --- a/ci/jenkinsfile/publish_docker.groovy +++ b/ci/jenkinsfile/publish_docker.groovy @@ -8,8 +8,11 @@ container('publish-docker') { sh "curl -O -u anonymous: ftp://192.168.1.126/data/${PROJECT_NAME}/engine/${JOB_NAME}-${BUILD_ID}/${PROJECT_NAME}-engine-${PACKAGE_VERSION}.tar.gz" sh "tar zxvf ${PROJECT_NAME}-engine-${PACKAGE_VERSION}.tar.gz" try { + def customImage = docker.build("${PROJECT_NAME}/engine:${DOCKER_VERSION}") docker.withRegistry('https://registry.zilliz.com', "${params.DOCKER_PUBLISH_USER}") { - def customImage = docker.build("${PROJECT_NAME}/engine:${DOCKER_VERSION}") + customImage.push() + } + docker.withRegistry('https://zilliz.azurecr.cn', "${params.AZURE_DOCKER_PUBLISH_USER}") { customImage.push() } if (currentBuild.resultIsBetterOrEqualTo('SUCCESS')) {