-
Notifications
You must be signed in to change notification settings - Fork 1
44 lines (40 loc) · 1.3 KB
/
terragrunt-apply-all.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
name: Terragrunt apply
on:
push:
branches:
- main
paths:
- ".github/workflows/**"
- "terraform/**"
jobs:
plan:
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- { os: "ubuntu-latest", account: "non-prod", env: "test" }
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
steps:
- uses: actions/checkout@v2
- name: Install terraform terragrunt
run: brew install terraform terragrunt
- name: Get terraform terragrunt versions
run: |
terraform --version \
terragrunt --version
- name: Terragrunt run-all plan
run: |
terragrunt run-all plan \
--terragrunt-non-interactive \
--terragrunt-parallelism 1 \
--terragrunt-working-dir terraform/terragrunt/${{ matrix.config.account }}/${{ matrix.config.env }}
- name: Terragrunt run-all apply
run: |
terragrunt run-all apply \
--terragrunt-non-interactive \
--terragrunt-parallelism 1 \
--terragrunt-working-dir terraform/terragrunt/${{ matrix.config.account }}/${{ matrix.config.env }}