-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.11 KB
/
apply.yaml
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Apply Changes
on:
push:
branches:
- master
permissions:
contents: read
pull-requests: write
issues: read
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
apply:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
cache-dependency-path: yarn.lock
- name: Generate Terraform Bindings
run: |
npx --yes cdktf-cli get
- name: Install NPM Dependencies
run: |
rm -rf node_modules/
yarn install --frozen-lockfile --production
- name: Load .env File Contents
env:
ENV_FILE_CONTENTS: ${{ secrets.ENV_FILE_CONTENTS }}
run: |
echo "${ENV_FILE_CONTENTS}" | tee .env
- name: Run Terraform CDK
uses: hashicorp/terraform-cdk-action@v5
with:
mode: auto-approve-apply
githubToken: ${{ secrets.GITHUB_TOKEN }}
stackName: '*'
updateComment: 'false'