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