-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
51 lines (46 loc) · 1.47 KB
/
variables.tf
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
43
44
45
46
47
48
49
50
51
variable "project_id" {
description = "The project to deploy to"
type = string
nullable = false
}
variable "location" {
description = "The location to deploy to"
type = string
default = "global"
}
variable "owner" {
description = "The owner of the repository"
type = string
nullable = false
}
variable "repository" {
description = "The name of the repository"
type = string
nullable = false
}
variable "triggers" {
description = <<EOT
The triggers to create. Each trigger should be defined with the following attributes:
- `name` (string): The name of the trigger.
- `tags` (list(string)): Tags to associate with the trigger.
- `sa` (string): Service account to use for the trigger.
- `ignored_files` (list(string)): List of files to ignore.
- `included_files` (list(string)): List of files to include.
- `event` (string): The event type that triggers the build (e.g., 'push', 'pull_request').
- `regex` (string): A regex pattern to filter the branches or tags.
- `invert_regex` (bool): If true, the regex pattern is inverted.
- `send_build_logs` (bool): If true, send build logs to a specific destination.
EOT
type = list(object({
name = string
tags = list(string)
sa = string
ignored_files = list(string)
included_files = list(string)
event = string
regex = string
invert_regex = bool
send_build_logs = bool
}))
default = []
}