Skip to content

Commit

Permalink
Github strips 'v' from the version in binary name
Browse files Browse the repository at this point in the history
  • Loading branch information
george-angel committed May 20, 2022
1 parent 6e9b521 commit 5155076
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ data "ignition_file" "pxe_update_engine" {
path = "/opt/bin/pxe-update-engine"

source {
source = "https://github.com/utilitywarehouse/flatcar-pxe-update-engine/releases/download/${var.release_version}/flatcar-pxe-update-engine_${var.release_version}_linux_amd64"
source = "https://github.com/utilitywarehouse/flatcar-pxe-update-engine/releases/download/${var.release_version}/flatcar-pxe-update-engine_${local.vless_release_version}_linux_amd64"
}
}

Expand Down
4 changes: 4 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ variable "release_version" {
variable "version_url" {
default = "https://stable.release.flatcar-linux.net/amd64-usr/current/version.txt"
}

locals {
vless_release_version = trimprefix(var.release_version, "v")
}

0 comments on commit 5155076

Please sign in to comment.