提交 7933a79b 编写于 作者: J Jeff

Merge branch 'branch-0.4.0' into 'branch-0.4.0'

add AZURE_DOCKER_PUBLISH_USER parameters

See merge request megasearch/milvus!421

Former-commit-id: e7b2d1659764d879dc5c939d41d9a2beb689f4ea
...@@ -8,8 +8,11 @@ container('publish-docker') { ...@@ -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 "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" sh "tar zxvf ${PROJECT_NAME}-engine-${PACKAGE_VERSION}.tar.gz"
try { try {
def customImage = docker.build("${PROJECT_NAME}/engine:${DOCKER_VERSION}")
docker.withRegistry('https://registry.zilliz.com', "${params.DOCKER_PUBLISH_USER}") { 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() customImage.push()
} }
if (currentBuild.resultIsBetterOrEqualTo('SUCCESS')) { if (currentBuild.resultIsBetterOrEqualTo('SUCCESS')) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册