Skip to content

Commit

Permalink
remove deprovision steps for simplicity (#234)
Browse files Browse the repository at this point in the history
  • Loading branch information
RDhar committed Jun 25, 2024
1 parent a86ea00 commit 5e5ab4a
Showing 1 changed file with 0 additions and 22 deletions.
22 changes: 0 additions & 22 deletions .github/workflows/tf_sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,6 @@ jobs:
command_input: ${{ format('-tf={0} -chdir=stacks/sample_instance -var-file=env/{1}.tfvars', github.event.action != 'closed' && 'plan -lock=false' || 'apply', matrix.context) }}
cache_plugins: false

- name: Await resource initialization
if: github.event.action == 'closed'
run: sleep 150

- name: Deprovision TF
if: github.event.action == 'closed'
uses: ./
with:
command_input: -tf=apply -chdir=stacks/sample_instance -var-file=env/${{ matrix.context }}.tfvars -destroy -auto-approve
cache_plugins: false

Bucket:
runs-on: ubuntu-latest
if: github.event.action != 'closed' || github.event.pull_request.merged
Expand Down Expand Up @@ -88,14 +77,3 @@ jobs:
with:
command_input: ${{ format('-tf={0} -chdir=stacks/sample_bucket -backend-config=backend/{1}.tfbackend', github.event.action != 'closed' && 'plan -lock=false' || 'apply', matrix.context) }}
cache_plugins: false

- name: Await resource initialization
if: github.event.action == 'closed'
run: sleep 150

- name: Deprovision TF
if: github.event.action == 'closed'
uses: ./
with:
command_input: -tf=apply -chdir=stacks/sample_bucket -backend-config=backend/${{ matrix.context }}.tfbackend -destroy -auto-approve
cache_plugins: false

0 comments on commit 5e5ab4a

Please sign in to comment.