fix: coder_agent arch
Some checks failed
Hetzner Cloud template / hetzner-cloud-template (push) Failing after 11s
Renovate / renovate (push) Failing after 15s

This commit is contained in:
Peter 2023-12-21 16:33:29 +01:00
parent 953b461955
commit abf78882e6
Signed by: prskr
GPG key ID: F56BED6903BC5E37

View file

@ -200,7 +200,7 @@ data "coder_parameter" "fleet_version" {
name = "fleet_version" name = "fleet_version"
display_name = "Fleet version" display_name = "Fleet version"
description = "Which version of Fleet should be installed?" description = "Which version of Fleet should be installed?"
default = "1.24.137" default = "1.28.117"
type = "string" type = "string"
mutable = true mutable = true
} }
@ -250,7 +250,7 @@ data "coder_workspace" "me" {
} }
resource "coder_agent" "dev" { resource "coder_agent" "dev" {
arch = "amd64" arch = startswith(data.coder_parameter.instance_type.value, "cax") ? "arm64" : "amd64"
os = "linux" os = "linux"
startup_script = data.coder_parameter.dotfiles_uri.value != "" ? "coder dotfiles -y ${data.coder_parameter.dotfiles_uri.value}" : null startup_script = data.coder_parameter.dotfiles_uri.value != "" ? "coder dotfiles -y ${data.coder_parameter.dotfiles_uri.value}" : null