[ci skip] Fix path.root references for git-crypt key in openclaw and drone

Modules used filebase64("${path.root}/.git/git-crypt/keys/default")
which breaks with Terragrunt since path.root is now stacks/<service>/
instead of repo root. Changed to accept git_crypt_key_base64 variable
and resolve the path in the stack wrapper.
This commit is contained in:
Viktor Barzin 2026-02-22 14:01:02 +00:00
parent d9cdedbfab
commit 05db771f58
No known key found for this signature in database
GPG key ID: 0EB088298288D958
4 changed files with 6 additions and 2 deletions

View file

@ -1,4 +1,5 @@
variable "tls_secret_name" {}
variable "git_crypt_key_base64" { type = string }
variable "tier" { type = string }
variable "github_client_id" {}
variable "github_client_secret" {}
@ -53,7 +54,7 @@ resource "kubernetes_config_map" "git_crypt_key" {
}
data = {
"key" = filebase64("${path.root}/.git/git-crypt/keys/default")
"key" = var.git_crypt_key_base64
}
}

View file

@ -1,4 +1,5 @@
variable "tls_secret_name" {}
variable "git_crypt_key_base64" { type = string }
variable "tier" { type = string }
variable "ssh_key" {}
variable "gemini_api_key" { type = string }
@ -62,7 +63,7 @@ resource "kubernetes_config_map" "git_crypt_key" {
namespace = kubernetes_namespace.openclaw.metadata[0].name
}
data = {
"key" = filebase64("${path.root}/.git/git-crypt/keys/default")
"key" = var.git_crypt_key_base64
}
}