-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (33 loc) · 1.05 KB
/
terraform-apply-dev.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
name: "Terraform Dev"
on:
push:
branches:
- master
env:
INFISICAL_API_URL: ${{ secrets.INFISICAL_API_URL }}
INFISICAL_TOKEN: ${{ secrets.INFISICAL_TOKEN }}
PG_CONN_STR: ${{ secrets.TERRAFORM_BACKEND }}
jobs:
terraform:
name: "Terraform Apply"
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v3
- shell: bash
run: curl -1sLf 'https://dl.cloudsmith.io/public/infisical/infisical-cli/setup.deb.sh' | sudo -E bash
- shell: bash
run: sudo apt-get update && sudo apt-get install -y infisical
- uses: zerotier/github-action@v1
with:
network_id: ${{ secrets.ZEROTIER_NETWORK_ID }}
auth_token: ${{ secrets.ZEROTIER_CENTRAL_TOKEN }}
- uses: hashicorp/setup-terraform@v2
- uses: actions/setup-node@v3
with:
node-version: "16.14.1"
cache: 'yarn'
- run: yarn install --immutable
- run: infisical run --env=dev -- yarn env .env
- run: infisical run --env=dev -- yarn deploy:dev