This commit is contained in:
2024-04-19 14:07:35 +02:00
parent 4c3491d2f1
commit 4f93d6f776

View File

@@ -17,12 +17,12 @@ data "kubernetes_secret_v1" "gitea" {
provider "restapi" { provider "restapi" {
uri = "${local.gitea_host}/api/v1" uri = "${local.gitea_host}/api/v1"
headers = local.request_headers headers = local.request_headers
write_returns_object = true
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"
write_returns_object = true
data = jsonencode({ data = jsonencode({
type = "gitea" type = "gitea"
active = true active = true