fetch GitHub App creds in the Makefile, run gitea and github units separately

This commit is contained in:
2026-11-10 00:05:34 +11:00
parent 691eca53ea
commit 323cde9336
2 changed files with 35 additions and 27 deletions
+2 -12
View File
@@ -9,22 +9,12 @@ include "config" {
}
locals {
owner = "IUCLabs"
github = include.config.locals.github
vault_path = "kv/service/github/iuclabs/terraform"
owner = "IUCLabs"
github = include.config.locals.github
}
terraform {
source = "../../../modules/github_org"
extra_arguments "github_app" {
commands = ["plan", "apply", "destroy", "refresh", "import"]
env_vars = {
GITHUB_APP_ID = run_cmd("--terragrunt-quiet", "vault", "kv", "get", "-field=app_id", local.vault_path)
GITHUB_APP_INSTALLATION_ID = run_cmd("--terragrunt-quiet", "vault", "kv", "get", "-field=installation_id", local.vault_path)
GITHUB_APP_PEM_FILE = run_cmd("--terragrunt-quiet", "vault", "kv", "get", "-field=pem", local.vault_path)
}
}
}
generate "provider" {