Skip to content

Commit d3c184a

Browse files
authored
Merge branch 'main' into feat-drift-remediation-#1011
2 parents e74d4dc + 3d2ec09 commit d3c184a

File tree

4 files changed

+26
-6
lines changed

4 files changed

+26
-6
lines changed

docs/resources/custom_flow.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,18 @@ data "env0_template" "github_template" {
2020
resource "env0_custom_flow" "custom_flow" {
2121
name = "Custom Flow"
2222
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
2535
}
2636
```
2737

docs/resources/custom_flow_assignment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ resource "env0_custom_flow" "my_custom_flow" {
2525
name = "custom-flow"
2626
repository = data.env0_template.my_template.repository
2727
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"
2929
}
3030
3131
resource "env0_custom_flow_assignment" "my_assignment" {

examples/resources/env0_custom_flow/resource.tf

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ data "env0_template" "github_template" {
55
resource "env0_custom_flow" "custom_flow" {
66
name = "Custom Flow"
77
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
1020
}

examples/resources/env0_custom_flow_assignment/resource.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ resource "env0_custom_flow" "my_custom_flow" {
1010
name = "custom-flow"
1111
repository = data.env0_template.my_template.repository
1212
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"
1414
}
1515

1616
resource "env0_custom_flow_assignment" "my_assignment" {

0 commit comments

Comments
 (0)