Skip to content

Commit

Permalink
re-create cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
Vladislav Volodkin committed Nov 6, 2023
1 parent ae0d8d0 commit 90bcd83
Showing 1 changed file with 40 additions and 40 deletions.
80 changes: 40 additions & 40 deletions .github/workflows/e2e-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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}

0 comments on commit 90bcd83

Please sign in to comment.