[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

@ -17,6 +17,7 @@ locals {
module "drone" {
source = "../../modules/kubernetes/drone"
tls_secret_name = var.tls_secret_name
git_crypt_key_base64 = filebase64("${path.root}/../../.git/git-crypt/keys/default")
github_client_id = var.drone_github_client_id
github_client_secret = var.drone_github_client_secret
rpc_secret = var.drone_rpc_secret

View file

@ -19,6 +19,7 @@ locals {
module "openclaw" {
source = "../../modules/kubernetes/openclaw"
tls_secret_name = var.tls_secret_name
git_crypt_key_base64 = filebase64("${path.root}/../../.git/git-crypt/keys/default")
ssh_key = var.openclaw_ssh_key
skill_secrets = var.openclaw_skill_secrets
gemini_api_key = var.gemini_api_key