worktree-citti-arkiver-tur #4

Merged
hjess merged 2 commits from worktree-citti-arkiver-tur into main 2026-10-30 11:47:44 +01:00
Showing only changes of commit 06656ffd4f - Show all commits

View File

@@ -98,11 +98,13 @@ job "citti" {
}
# Claude key for DA translation + AI offer matching (same account as
# BlaaAi). keyOrDefault so a missing KV never blocks deploy — without it
# offers simply stay German and the token heuristic handles matching.
# BlaaAi). Use citti's own Consul key if set, else fall back to the
# existing blaaai/anthropic_api_key. `or` keeps it empty (not a deploy
# failure) if neither exists — offers then stay German with heuristic
# matching.
template {
data = <<EOT
ANTHROPIC_API_KEY={{ keyOrDefault "citti/anthropic_api_key" "" }}
ANTHROPIC_API_KEY={{ or (keyOrDefault "citti/anthropic_api_key" "") (keyOrDefault "blaaai/anthropic_api_key" "") }}
EOT
destination = "secrets/app.env"
env = true