From dd6a25411d136612d3f0869fde78f3ad031477a6 Mon Sep 17 00:00:00 2001 From: Magnus Kulke Date: Wed, 10 Jan 2024 14:17:56 +0100 Subject: [PATCH] garm: use var.location in azure provider config Signed-off-by: Magnus Kulke --- github/azure-self-hosted-runners/templates/azure-config.toml | 2 +- github/azure-self-hosted-runners/tf/main.tf | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/github/azure-self-hosted-runners/templates/azure-config.toml b/github/azure-self-hosted-runners/templates/azure-config.toml index 3f5ab8b..43e6f91 100644 --- a/github/azure-self-hosted-runners/templates/azure-config.toml +++ b/github/azure-self-hosted-runners/templates/azure-config.toml @@ -1,4 +1,4 @@ -location = "eastus2" +location = "{{ env['LOCATION'] }}" [credentials] subscription_id = "{{ env['SUBSCRIPTION_ID'] }}" diff --git a/github/azure-self-hosted-runners/tf/main.tf b/github/azure-self-hosted-runners/tf/main.tf index dd1aa79..447c5c1 100644 --- a/github/azure-self-hosted-runners/tf/main.tf +++ b/github/azure-self-hosted-runners/tf/main.tf @@ -87,6 +87,7 @@ resource "azurerm_container_group" "garm_aci" { GARM_HOSTNAME = local.fqdn SUBSCRIPTION_ID = data.azurerm_subscription.current.subscription_id AZURE_CLIENT_ID = azurerm_user_assigned_identity.garm_id.client_id + LOCATION = var.location } secure_environment_variables = {