-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
efc0369
commit 7cc8229
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 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: Use branch workspace | ||
uses: dflook/[email protected] | ||
with: | ||
path: terraform/dev | ||
workspace: dev-${{ github.head_ref }} | ||
|
||
- name: Plan test infrastrucutre | ||
uses: dflook/[email protected] | ||
with: | ||
path: terraform/dev | ||
workspace: dev-${{ github.head_ref }} |