File tree Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Expand file tree Collapse file tree 1 file changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,7 @@ need to be defined.
43
43
:::
44
44
45
45
## Example Using All Keys
46
+
46
47
``` yaml
47
48
version : 3
48
49
automerge : true
@@ -81,6 +82,35 @@ allowed_regexp_prefixes:
81
82
- staging/
82
83
` ` `
83
84
85
+ ## Example of DRYing up projects using YAML anchors
86
+
87
+ ` ` ` yaml
88
+ projects :
89
+ - &template
90
+ name : template
91
+ workflow : custom
92
+ autoplan :
93
+ enabled : true
94
+ when_modified :
95
+ - " ./terraform/modules/**/*.tf"
96
+ - " **/*.tf"
97
+
98
+ - << : *template
99
+ name : ue1-prod-titan
100
+ dir : ./terraform/titan
101
+ workspace : ue1-prod
102
+
103
+ - << : *template
104
+ name : ue1-stage-titan
105
+ dir : ./terraform/titan
106
+ workspace : ue1-stage
107
+
108
+ - << : *template
109
+ name : ue1-dev-titan
110
+ dir : ./terraform/titan
111
+ workspace : ue1-dev
112
+ ` ` `
113
+
84
114
## Auto generate projects
85
115
86
116
This is useful if you have many projects in a repository. This assumes the ` default` workspace (or no workspace).
You can’t perform that action at this time.
0 commit comments