File tree 4 files changed +26
-6
lines changed
env0_custom_flow_assignment 4 files changed +26
-6
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,18 @@ data "env0_template" "github_template" {
20
20
resource "env0_custom_flow" "custom_flow" {
21
21
name = "Custom Flow"
22
22
repository = data.env0_template.github_template.repository
23
- github_installation_id = data.env0_template.github_template.github_installation_id
24
- path = "custom-flows/opa.yaml"
23
+ github_installation_id = data.env0_template.github_template.github_installation_id // The installation ID is taken from an existing authorized template
24
+ path = "custom-flows/my-custom-flow.yaml"
25
+ }
26
+
27
+
28
+ // Self Hosted VCS
29
+ resource "env0_custom_flow" "ghe_custom_flow" {
30
+ name = "GHE Custom Flow"
31
+ revision = "my-revision"
32
+ repository = "https://mycompany.github.com/myorg/myrepo"
33
+ path = "custom-flows/my-custom-flow.yaml"
34
+ is_github_enterprise = true
25
35
}
26
36
```
27
37
Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ resource "env0_custom_flow" "my_custom_flow" {
25
25
name = "custom-flow"
26
26
repository = data.env0_template.my_template.repository
27
27
github_installation_id = data.env0_template.my_template.github_installation_id
28
- path = "custom-flows/opa .yaml"
28
+ path = "custom-flows/my-custom-flow .yaml"
29
29
}
30
30
31
31
resource "env0_custom_flow_assignment" "my_assignment" {
Original file line number Diff line number Diff line change @@ -5,6 +5,16 @@ data "env0_template" "github_template" {
5
5
resource "env0_custom_flow" "custom_flow" {
6
6
name = " Custom Flow"
7
7
repository = data. env0_template . github_template . repository
8
- github_installation_id = data. env0_template . github_template . github_installation_id
9
- path = " custom-flows/opa.yaml"
8
+ github_installation_id = data. env0_template . github_template . github_installation_id // The installation ID is taken from an existing authorized template
9
+ path = " custom-flows/my-custom-flow.yaml"
10
+ }
11
+
12
+
13
+ // Self Hosted VCS
14
+ resource "env0_custom_flow" "ghe_custom_flow" {
15
+ name = " GHE Custom Flow"
16
+ revision = " my-revision"
17
+ repository = " https://mycompany.github.com/myorg/myrepo"
18
+ path = " custom-flows/my-custom-flow.yaml"
19
+ is_github_enterprise = true
10
20
}
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ resource "env0_custom_flow" "my_custom_flow" {
10
10
name = " custom-flow"
11
11
repository = data. env0_template . my_template . repository
12
12
github_installation_id = data. env0_template . my_template . github_installation_id
13
- path = " custom-flows/opa .yaml"
13
+ path = " custom-flows/my-custom-flow .yaml"
14
14
}
15
15
16
16
resource "env0_custom_flow_assignment" "my_assignment" {
You can’t perform that action at this time.
0 commit comments