Skip to content

Commit

Permalink
dev-plan workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremywmoore committed Jun 26, 2024
1 parent 3c05419 commit d0b21db
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/dev_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
name: Create Dev Deployment

on:
pull_request:
types: [labeled]

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

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: container-deploy
token: ${{ secrets.HUSHLINE_INFRA_TOKEN }}

- name: Use branch workspace
uses: dflook/terraform-new-workspace@v1.43.0
with:
path: terraform-dev
workspace: dev-${{ github.head_ref }}

- name: Plan test infrastrucutre
uses: dflook/terraform-plan@v1.43.0
with:
path: terraform-dev
workspace: dev-${{ github.head_ref }}

0 comments on commit d0b21db

Please sign in to comment.