Skip to content

Commit

Permalink
add destroy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremywmoore committed Jun 28, 2024
1 parent 93f92fb commit 6f87191
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/dev_destroy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: Create Dev Deployment

on:
pull_request:
types: [unlabeled]

env:
TERRAFORM_CLOUD_TOKENS: app.terraform.io=${{ secrets.TERRAFORM_API_TOKEN }}
ORGANIZATION: science-and-design
PROJECT: Hush Line Dev

jobs:
deploy:
if: ${{ github.event.label.name == 'dev-deploy' }}
runs-on: ubuntu-latest
steps:
- name: checkout terraform
uses: actions/checkout@v4
with:
repository: 'scidsg/hushline-infra'
ref: dev-deploy
token: ${{ secrets.HUSHLINE_INFRA_TOKEN }}

- name: destroy worspace
uses: dflook/[email protected]
with:
path: terraform/dev
workspace: dev-${{ github.head_ref }}

0 comments on commit 6f87191

Please sign in to comment.