-
-
Notifications
You must be signed in to change notification settings - Fork 20
38 lines (33 loc) · 976 Bytes
/
dev_deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
---
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 }}
variables: |
tag = "latest"
name = "hushline-${{ github.head_ref }}"