Skip to content

Commit

Permalink
Add destroy.
Browse files Browse the repository at this point in the history
  • Loading branch information
musa-asad committed Dec 2, 2024
1 parent 59e069f commit 2bad825
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/eks-e2e-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,18 @@ jobs:
else
terraform destroy --auto-approve && exit 1
fi
- name: Terraform destroy
if: ${{ cancelled() || failure() }}
uses: nick-fields/retry@v2
with:
max_attempts: 3
timeout_minutes: 8
retry_wait_seconds: 5
command: |
if [ "${{ inputs.terraform_dir }}" != "" ]; then
cd "${{ inputs.terraform_dir }}"
else
cd terraform/eks/e2e
fi
terraform destroy --auto-approve

0 comments on commit 2bad825

Please sign in to comment.