-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathatlantis.yaml
42 lines (42 loc) · 1005 Bytes
/
atlantis.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
version: 3
automerge: true
delete_source_branch_on_merge: true
parallel_plan: true
parallel_apply: true
projects:
- name: test-prod
dir: .
workspace: prod
terraform_version: v0.11.0
delete_source_branch_on_merge: true
autoplan:
when_modified: ["*.tf", "../modules/**/*.tf"]
enabled: true
apply_requirements: [mergeable, approved]
workflow: myworkflow
- name: test-stage
dir: .
workspace: stage
terraform_version: v0.11.0
delete_source_branch_on_merge: true
autoplan:
when_modified: ["*.tf", "../modules/**/*.tf"]
enabled: true
apply_requirements: [mergeable, approved]
workflow: myworkflow
workflows:
myworkflow:
plan:
steps:
- run: echo step_run_before_plan
- init
- plan:
extra_args: ["-lock", "false"]
- run: echo step_run_after_plan
apply:
steps:
- run: echo step_run_before_apply
- apply
allowed_regexp_prefixes:
- dev/
- staging/