-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdigger.yaml
More file actions
36 lines (36 loc) · 1.29 KB
/
digger.yaml
File metadata and controls
36 lines (36 loc) · 1.29 KB
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
# This is the configuration file for Digger. It is used to define the projects and workflows that Digger will use to generate the projects.
# Manually declare the projects and workflows that Digger will use to generate the projects.
#
# projects:
# - name: production
# dir: prod
# Or use the terragrunt_parsing workflow to generate the projects.
generate_projects:
terragrunt_parsing:
parallel: true
createProjectName: true
createWorkspace: true
defaultWorkflow: default
telemetry: false
workflows:
# To be run on every pull request, by default
default:
plan:
steps:
- hclfmt
- init
- run: checkov -d . --quiet --framework terraform --download-external-modules true
- plan
- run: infracost breakdown --path=. | tee -a $DIGGER_OUT
- run: git checkout $DEFAULT_BRANCH && infracost breakdown --path . --format=json --out-file=$RUNNER_TEMP/infracost-base-${PROJECT_NAME}.json && git fetch origin $PR_BRANCH && git checkout $PR_BRANCH
- run: infracost diff --path=. --compare-to=$RUNNER_TEMP/infracost-base-${PROJECT_NAME}.json | tee -a $DIGGER_OUT
# To be run on only by invoking the /digger commands in a PR
# comments-only:
# apply:
# steps:
# - hclfmt
# - apply
#
# destroy:
# steps:
# - destroy