Skip to content

Commit

Permalink
cd into right directory on terraform destroy
Browse files Browse the repository at this point in the history
  • Loading branch information
dricross committed Feb 3, 2025
1 parent 20257af commit c3d5a43
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/ec2-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,10 @@ jobs:
timeout_minutes: 8
retry_wait_seconds: 5
command: |
cd ${{ inputs.test_dir }}
terraform init
if [ "${{ matrix.arrays.terraform_dir }}" != "" ]; then
cd "${{ matrix.arrays.terraform_dir }}"
else
cd ${{inputs.test_dir}}
fi
terraform destroy -var="region=${{ inputs.region }}" -var="ami=${{ matrix.arrays.ami }}" --auto-approve

0 comments on commit c3d5a43

Please sign in to comment.