From 2047209d9e2d1f8b4f47539ade3086aeaf72051a Mon Sep 17 00:00:00 2001 From: zhuwenxing Date: Wed, 16 Mar 2022 14:53:25 +0800 Subject: [PATCH] [skip e2e]Fix scheduled github action cant't get input (#16064) Signed-off-by: zhuwenxing --- .github/workflows/pod-kill-chaos-test.yaml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pod-kill-chaos-test.yaml b/.github/workflows/pod-kill-chaos-test.yaml index c9b9973a55..4ae2577202 100644 --- a/.github/workflows/pod-kill-chaos-test.yaml +++ b/.github/workflows/pod-kill-chaos-test.yaml @@ -23,8 +23,11 @@ jobs: steps: - name: Set env param + env: + DEFAULT_IMAGE_TAG: master-latest run: | echo "RELEASE=test-${{ matrix.pod }}-pod-kill" >> $GITHUB_ENV + echo "IMAGE_TAG=${{ github.event.inputs.image_tag || env.DEFAULT_IMAGE_TAG}}" >> $GITHUB_ENV - name: Creating kind cluster uses: helm/kind-action@v1.2.0 @@ -73,8 +76,8 @@ jobs: bash ../../../scripts/docker_image_find_tag.sh -n milvusdb/milvus-dev -t master-latest -f master- -F -L -q helm repo add milvus https://milvus-io.github.io/milvus-helm helm repo update - if [[ ${{ matrix.pod }} != *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus --set image.all.tag=${{ github.event.inputs.image_tag }} -f cluster-values.yaml -n=chaos-testing; fi - if [[ ${{ matrix.pod }} == *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus --set image.all.tag=${{ github.event.inputs.image_tag }} -f standalone-values.yaml -n=chaos-testing; fi + if [[ ${{ matrix.pod }} != *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus --set image.all.tag=${{ env.IMAGE_TAG }} -f cluster-values.yaml -n=chaos-testing; fi + if [[ ${{ matrix.pod }} == *"standalone"* ]]; then helm install --wait --timeout 720s ${{ env.RELEASE }} milvus/milvus --set image.all.tag=${{ env.IMAGE_TAG }} -f standalone-values.yaml -n=chaos-testing; fi kubectl get pods -n chaos-testing sleep 20s kubectl get pods -n chaos-testing