fix
This commit is contained in:
@@ -20,19 +20,21 @@ provider "restapi" {
|
||||
id_attribute = "id"
|
||||
}
|
||||
|
||||
# resource "restapi_object" "gitea_org_hook" {
|
||||
# path = "/orgs/${var.organization}/hooks"
|
||||
# data = jsonencode({
|
||||
# type = "gitea"
|
||||
# active = true
|
||||
# branch_filter = "*"
|
||||
# events = [
|
||||
# "create",
|
||||
# "push"
|
||||
# ],
|
||||
# config = {
|
||||
# url = ""
|
||||
# content_type = "application/json"
|
||||
# }
|
||||
# })
|
||||
# }
|
||||
resource "restapi_object" "gitea_org_hook" {
|
||||
path = "/orgs/${var.organization}/hooks"
|
||||
data = jsonencode({
|
||||
type = "gitea"
|
||||
active = true
|
||||
branch_filter = "*"
|
||||
authorization_header = ""
|
||||
events = [
|
||||
"create",
|
||||
"push",
|
||||
"repository"
|
||||
]
|
||||
config = {
|
||||
url = "http://el-${var.instance}-${var.component}.${var.namespace}.svc:8080"
|
||||
content_type = "json"
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user