From 0f50db42d173da125f4ba9f2299bb67d2aaef80f Mon Sep 17 00:00:00 2001 From: Austin Abro Date: Thu, 25 Jul 2024 12:12:00 +0000 Subject: [PATCH] re tear down Signed-off-by: Austin Abro --- .github/workflows/nightly-eks.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/nightly-eks.yml b/.github/workflows/nightly-eks.yml index 67937d4a9b..1f7e77fc81 100644 --- a/.github/workflows/nightly-eks.yml +++ b/.github/workflows/nightly-eks.yml @@ -41,7 +41,15 @@ jobs: role-to-assume: ${{ secrets.AWS_NIGHTLY_ROLE }} role-session-name: ${{ github.job || github.event.client_payload.pull_request.head.sha || github.sha }} aws-region: us-east-1 - role-duration-seconds: 3600 + role-duration-seconds: 7200 + + - name: Teardown the cluster + if: always() + run: | + ./build/zarf package deploy build/zarf-package-distro-eks-amd64-0.0.3.tar.zst \ + --components=teardown-eks-cluster \ + --set=EKS_CLUSTER_NAME=${{ inputs.cluster_name || 'zarf-nightly-eks-e2e-test' }} \ + --confirm - name: Build the eks package run: ./build/zarf package create packages/distros/eks -o build --confirm