We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c05419 commit dd1adb8Copy full SHA for dd1adb8
.github/workflows/dev_deploy.yml
@@ -0,0 +1,35 @@
1
+---
2
+name: Create Dev Deployment
3
+
4
+on:
5
+ pull_request:
6
+ types: [labeled]
7
8
+env:
9
+ TF_API_TOKEN: "${{ secrets.TERRAFORM_API_TOKEN }}"
10
+ ORGANIZATION: science-and-design
11
+ PROJECT: Hush Line
12
+ WORKSPACE: hushline-${{ github.head_ref }}
13
14
+jobs:
15
+ deploy:
16
+ if: ${{ github.event.label.name == 'dev-deploy' }}
17
+ runs-on: unbuntu-latest
18
+ steps:
19
+ - name: checkout terraform
20
+ uses: actions/checkout@v4
21
+ with:
22
+ repository: 'scidsg/hushline-infra'
23
+ token: ${{ secrets.HUSHLINE_INFRA_TOKEN }}
24
25
+ - name: Use branch workspace
26
+ uses: dflook/[email protected]
27
28
+ path: terraform
29
+ workspace: dev-${{ github.head_ref }}
30
31
+ - name: Plan test infrastrucutre
32
33
34
35
0 commit comments