change to publish only the enabled one
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 55s

This commit is contained in:
2025-06-18 23:41:35 +01:00
parent b7a0e73665
commit 347103b9f9
2 changed files with 3 additions and 17 deletions
-16
View File
@@ -19,22 +19,6 @@ variable "nginx_sites" {
}
locals {
template = templatefile("websites_terraform.json.tftpl", {
map_of_params = var.nginx_sites
})
}
resource "local_file" "nginx" {
content = templatefile("websites_terraform.json.tftpl", {
map_of_params = var.nginx_sites })
filename = "/tmp/test.tryton.geeraert.eu.conf"
file_permission = "0600"
}
resource "kubernetes_config_map" "websites_configmap" {
metadata {
name = "sites-terraform"
+2
View File
@@ -1,7 +1,9 @@
%{ for key, value in map_of_params }
%{ if value.enabled}
{
"${key}": {
"service": "${value.service}"
}
}
%{ endif }
%{ endfor ~}