This commit is contained in:
2024-04-19 14:02:07 +02:00
parent d03228ceff
commit 81cc8bfcd7

View File

@@ -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"
}
})
}