mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-22 08:04:20 +01:00
Maybe terraform will cooperate now?
Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
parent
40766d249e
commit
0ca6ec76c4
|
@ -6,6 +6,9 @@ let
|
|||
in
|
||||
{
|
||||
resource."nomad_job"."website" = nomadJob {
|
||||
lifecycle.replace_triggered_by = [
|
||||
"resource.nomad_job.website.hcl2[0].vars[\"flake_path\"]"
|
||||
];
|
||||
jobspec = ./job.hcl;
|
||||
vars = {
|
||||
flake_ref = "${vars.flake_host}?rev=${vars.flake_rev}&ref=${vars.flake_ref}";
|
||||
|
|
|
@ -9,8 +9,11 @@
|
|||
enabled = true;
|
||||
inherit vars;
|
||||
};
|
||||
lifecycle.ignore_changes = [
|
||||
lifecycle = {
|
||||
ignore_changes = [
|
||||
"hcl2[0].vars[\"flake_ref\"]"
|
||||
"hcl2[0].vars[\"flake_sha\"]"
|
||||
];
|
||||
create_before_destroy = true;
|
||||
};
|
||||
} // builtins.removeAttrs args [ "jobspec" "vars" ]
|
||||
|
|
Loading…
Reference in a new issue