enhance: enable docker buildkit (#31600)

Signed-off-by: Liang Huang <sammy.huang@zilliz.com>
This commit is contained in:
sammy.huang 2024-03-27 16:49:15 +08:00 committed by GitHub
parent efa645db6f
commit d88026bd73
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 0 deletions

View File

@ -50,6 +50,7 @@ pipeline {
export MILVUS_IMAGE_REPO="${env.TARGET_REPO}/milvus" export MILVUS_IMAGE_REPO="${env.TARGET_REPO}/milvus"
export MILVUS_HARBOR_IMAGE_REPO="${env.HARBOR_REPO}/milvus/milvus" export MILVUS_HARBOR_IMAGE_REPO="${env.HARBOR_REPO}/milvus/milvus"
export MILVUS_IMAGE_TAG="${env.BRANCH_NAME}-${date}-${gitShortCommit}-gpu" export MILVUS_IMAGE_TAG="${env.BRANCH_NAME}-${date}-${gitShortCommit}-gpu"
export DOCKER_BUILDKIT=1
build/build_image_gpu.sh build/build_image_gpu.sh
docker push \${MILVUS_IMAGE_REPO}:\${MILVUS_IMAGE_TAG} docker push \${MILVUS_IMAGE_REPO}:\${MILVUS_IMAGE_TAG}
docker tag \${MILVUS_IMAGE_REPO}:\${MILVUS_IMAGE_TAG} \${MILVUS_IMAGE_REPO}:${env.BRANCH_NAME}-latest-gpu docker tag \${MILVUS_IMAGE_REPO}:\${MILVUS_IMAGE_TAG} \${MILVUS_IMAGE_REPO}:${env.BRANCH_NAME}-latest-gpu

View File

@ -70,6 +70,7 @@ pipeline {
export MILVUS_IMAGE_REPO="${env.TARGET_REPO}/milvus" export MILVUS_IMAGE_REPO="${env.TARGET_REPO}/milvus"
export MILVUS_HARBOR_IMAGE_REPO="${env.HARBOR_REPO}/milvus/milvus" export MILVUS_HARBOR_IMAGE_REPO="${env.HARBOR_REPO}/milvus/milvus"
export MILVUS_IMAGE_TAG="${imageTag}-amd64" export MILVUS_IMAGE_TAG="${imageTag}-amd64"
export DOCKER_BUILDKIT=1
build/build_image.sh build/build_image.sh
docker push \${MILVUS_IMAGE_REPO}:\${MILVUS_IMAGE_TAG} docker push \${MILVUS_IMAGE_REPO}:\${MILVUS_IMAGE_TAG}
docker logout docker logout
@ -121,6 +122,7 @@ pipeline {
export MILVUS_IMAGE_REPO="${env.TARGET_REPO}/milvus" export MILVUS_IMAGE_REPO="${env.TARGET_REPO}/milvus"
export MILVUS_HARBOR_IMAGE_REPO="${env.HARBOR_REPO}/milvus/milvus" export MILVUS_HARBOR_IMAGE_REPO="${env.HARBOR_REPO}/milvus/milvus"
export MILVUS_IMAGE_TAG="${imageTag}-arm64" export MILVUS_IMAGE_TAG="${imageTag}-arm64"
export DOCKER_BUILDKIT=1
BUILD_ARGS="--build-arg TARGETARCH=arm64" build/build_image.sh BUILD_ARGS="--build-arg TARGETARCH=arm64" build/build_image.sh
docker push \${MILVUS_IMAGE_REPO}:\${MILVUS_IMAGE_TAG} docker push \${MILVUS_IMAGE_REPO}:\${MILVUS_IMAGE_TAG}
docker logout docker logout