From 90bcd83385a310be7e2e752afa77295565d9ac62 Mon Sep 17 00:00:00 2001 From: Vladislav Volodkin Date: Mon, 6 Nov 2023 20:43:22 +0000 Subject: [PATCH] re-create cluster --- .github/workflows/e2e-tests.yaml | 80 ++++++++++++++++---------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/.github/workflows/e2e-tests.yaml b/.github/workflows/e2e-tests.yaml index e8c3f23c..e432b3b7 100644 --- a/.github/workflows/e2e-tests.yaml +++ b/.github/workflows/e2e-tests.yaml @@ -52,16 +52,16 @@ jobs: - name: Login to Amazon ECR id: login-ecr uses: aws-actions/amazon-ecr-login@v2 - - name: Build, tag, and push docker image to Amazon ECR Private Repository - env: - REGISTRY: ${{ steps.login-ecr.outputs.registry }} - IMAGE_NAME: ${{ env.TMP_IMAGE_NAME }} - run: | - BRANCH_OR_TAG=$(echo $GITHUB_REF | cut -d'/' -f3) - export PLATFORM=linux/amd64 - export TAG=${{ env.COMMIT_ID }} - make build_image - make push_image + # - name: Build, tag, and push docker image to Amazon ECR Private Repository + # env: + # REGISTRY: ${{ steps.login-ecr.outputs.registry }} + # IMAGE_NAME: ${{ env.TMP_IMAGE_NAME }} + # run: | + # BRANCH_OR_TAG=$(echo $GITHUB_REF | cut -d'/' -f3) + # export PLATFORM=linux/amd64 + # export TAG=${{ env.COMMIT_ID }} + # make build_image + # make push_image - name: Install tools run: | export ACTION=install_tools @@ -80,33 +80,33 @@ jobs: export IMAGE_NAME=${{ env.TMP_IMAGE_NAME }} export TAG=${{ env.COMMIT_ID }} tests/e2e-kubernetes/run.sh - - name: Run E2E Tests - run: | - cd tests/e2e-kubernetes - export ACTION=run_tests - export AWS_REGION=${{ env.AWS_REGION }} - export CLUSTER_TYPE=${{ matrix.cluster-type }} - export TAG=${{ env.COMMIT_ID }} - ./run.sh - - name: Uinstall the driver - if: always() - run: | - export ACTION=uninstall_driver - export AWS_REGION=${{ env.AWS_REGION }} - export CLUSTER_TYPE=${{ matrix.cluster-type }} - tests/e2e-kubernetes/run.sh - - name: Delete cluster - if: always() - run: | - export ACTION=delete_cluster - export AWS_REGION=${{ env.AWS_REGION }} - export CLUSTER_TYPE=${{ matrix.cluster-type }} - tests/e2e-kubernetes/run.sh - - name: Promote image for release branch - if: ${{ startsWith(github.ref_name, 'release') && matrix.cluster-type == 'eksctl' }} - env: - REGISTRY: ${{ steps.login-ecr.outputs.registry }} - run: | - export NEW_IMAGE_NAME=${REGISTRY}/${{ env.PROMOTED_IMAGE_NAME }}:${{ env.COMMIT_ID }} - docker tag ${REGISTRY}/${{ env.TMP_IMAGE_NAME }}:${{ env.COMMIT_ID }} ${NEW_IMAGE_NAME} - docker push ${NEW_IMAGE_NAME} + # - name: Run E2E Tests + # run: | + # cd tests/e2e-kubernetes + # export ACTION=run_tests + # export AWS_REGION=${{ env.AWS_REGION }} + # export CLUSTER_TYPE=${{ matrix.cluster-type }} + # export TAG=${{ env.COMMIT_ID }} + # ./run.sh + # - name: Uinstall the driver + # if: always() + # run: | + # export ACTION=uninstall_driver + # export AWS_REGION=${{ env.AWS_REGION }} + # export CLUSTER_TYPE=${{ matrix.cluster-type }} + # tests/e2e-kubernetes/run.sh + # - name: Delete cluster + # if: always() + # run: | + # export ACTION=delete_cluster + # export AWS_REGION=${{ env.AWS_REGION }} + # export CLUSTER_TYPE=${{ matrix.cluster-type }} + # tests/e2e-kubernetes/run.sh + # - name: Promote image for release branch + # if: ${{ startsWith(github.ref_name, 'release') && matrix.cluster-type == 'eksctl' }} + # env: + # REGISTRY: ${{ steps.login-ecr.outputs.registry }} + # run: | + # export NEW_IMAGE_NAME=${REGISTRY}/${{ env.PROMOTED_IMAGE_NAME }}:${{ env.COMMIT_ID }} + # docker tag ${REGISTRY}/${{ env.TMP_IMAGE_NAME }}:${{ env.COMMIT_ID }} ${NEW_IMAGE_NAME} + # docker push ${NEW_IMAGE_NAME}