fix
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user