Skip to content

Commit

Permalink
Merge pull request #9 from mkulke/mkulke/add-vm-location-param
Browse files Browse the repository at this point in the history
garm: introduce vm_location param
  • Loading branch information
wainersm authored Feb 1, 2024
2 parents 3ac177c + beaabde commit 3764ed8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
location = "{{ env['LOCATION'] }}"
location = "{{ env['VM_LOCATION'] }}"

[credentials]
subscription_id = "{{ env['SUBSCRIPTION_ID'] }}"
Expand Down
2 changes: 1 addition & 1 deletion github/azure-self-hosted-runners/tf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +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
VM_LOCATION = var.vm_location
}

secure_environment_variables = {
Expand Down
6 changes: 6 additions & 0 deletions github/azure-self-hosted-runners/tf/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ variable "location" {
description = "Location for all resources"
}

variable "vm_location" {
type = string
default = "westeurope"
description = "Location for the runner VMs"
}

variable "garm_image" {
type = string
default = "ghcr.io/confidential-containers/garm:main"
Expand Down

0 comments on commit 3764ed8

Please sign in to comment.