mirror of
https://gitee.com/milvus-io/milvus.git
synced 2024-11-30 02:48:45 +08:00
enhance: enable docker buildkit (#31600)
Signed-off-by: Liang Huang <sammy.huang@zilliz.com>
This commit is contained in:
parent
efa645db6f
commit
d88026bd73
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user