feat: retrigger download when release is changed
This commit is contained in:
parent
66318db448
commit
68e9e22b97
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
WARNING! this module is experimental
|
||||
|
||||
This module downloads the proper files from the RKE2 release specified and names them appropriately for the install script.
|
||||
This module downloads the proper files from the RKE2 release specified and names them appropriately for the install script. The download can be retriggered again by changing the release var.
|
||||
|
||||
## Usage
|
||||
|
||||
|
|
|
|||
5
main.tf
5
main.tf
|
|
@ -56,7 +56,10 @@ resource "null_resource" "download" {
|
|||
for_each = local.files
|
||||
provisioner "local-exec" {
|
||||
command = <<-EOT
|
||||
curl -L -s -o ${abspath("${local.path}/${each.key}")} ${each.value}
|
||||
curl -L -s > ${abspath("${local.path}/${each.key}")} ${each.value}
|
||||
EOT
|
||||
}
|
||||
triggers = {
|
||||
release = var.release
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue