From 4ee643a98441a4e6286b574d4193219b97d9d626 Mon Sep 17 00:00:00 2001 From: "sammy.huang" Date: Thu, 21 Dec 2023 19:14:42 +0800 Subject: [PATCH] enhance: [skip e2e]remove-old-builder (#29384) Signed-off-by: Sammy Huang --- .github/workflows/publish-builder.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-builder.yaml b/.github/workflows/publish-builder.yaml index 218d326d78..fb2650aee8 100644 --- a/.github/workflows/publish-builder.yaml +++ b/.github/workflows/publish-builder.yaml @@ -58,7 +58,16 @@ jobs: run: | docker run --rm --privileged tonistiigi/binfmt:latest --install arm64 docker buildx ls - docker buildx create --use --name=milvus --driver docker-container + + # Check if the builder named "milvus" exists + if docker buildx ls | grep -q "milvus"; then + echo "Builder 'milvus' already exists. Skipping creation." + else + # Create the builder named "milvus" + echo "Creating builder named 'milvus'..." + docker buildx create --use --name=milvus --driver docker-container + echo "'milvus' builder created." + fi - name: Docker Build if: success() && github.event_name == 'pull_request' && github.repository == 'milvus-io/milvus' shell: bash