From 7411520b7107c749f4d1b8d7c356bef7214f6137 Mon Sep 17 00:00:00 2001 From: Ayden Jahola Date: Fri, 28 Feb 2025 19:52:50 +0000 Subject: [PATCH] socs: update esporst discord bot --- jobs/socs/esports-discord-bot.hcl | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/jobs/socs/esports-discord-bot.hcl b/jobs/socs/esports-discord-bot.hcl index dd4805b..1aee239 100644 --- a/jobs/socs/esports-discord-bot.hcl +++ b/jobs/socs/esports-discord-bot.hcl @@ -10,6 +10,7 @@ job "esports-discord-bot" { config { image = "ghcr.io/aydenjahola/discord-multipurpose-bot:main" + force_pull = true } resources { @@ -28,6 +29,15 @@ RAPIDAPI_KEY={{ key "socs/esports/bot/rapidapi/key" }} TRACKER_API_KEY={{ key "socs/esports/bot/trackerapi/key" }} TRACKER_API_URL={{ key "socs/esports/bot/trackerapi/url" }} WORDNIK_API_KEY={{key "socs/esports/bot/wordnikapi/key" }} +HUGGING_FACE_API_KEY={{ key "socs/esports/bot/huggingface/key" }} + +RCON_HOST=esports-mc-rcon.service.consul + +# https://discuss.hashicorp.com/t/passing-registered-ip-and-port-from-consul-to-env-nomad-job-section/35647 +{{ range service "esports-mc-rcon" }} +RCON_PORT={{ .Port }}{{ end }} + +RCON_PASSWORD={{ key "games/mc/esports-mc/rcon/password" }} EOH destination = "local/.env" env = true