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