Nah it won't work

Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
magic_rb 2023-10-15 18:56:29 +02:00
parent 0ca6ec76c4
commit 52684b1723
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
2 changed files with 0 additions and 10 deletions

View file

@ -6,9 +6,6 @@ let
in in
{ {
resource."nomad_job"."website" = nomadJob { resource."nomad_job"."website" = nomadJob {
lifecycle.replace_triggered_by = [
"resource.nomad_job.website.hcl2[0].vars[\"flake_path\"]"
];
jobspec = ./job.hcl; jobspec = ./job.hcl;
vars = { vars = {
flake_ref = "${vars.flake_host}?rev=${vars.flake_rev}&ref=${vars.flake_ref}"; flake_ref = "${vars.flake_host}?rev=${vars.flake_rev}&ref=${vars.flake_ref}";

View file

@ -9,11 +9,4 @@
enabled = true; enabled = true;
inherit vars; inherit vars;
}; };
lifecycle = {
ignore_changes = [
"hcl2[0].vars[\"flake_ref\"]"
"hcl2[0].vars[\"flake_sha\"]"
];
create_before_destroy = true;
};
} // builtins.removeAttrs args [ "jobspec" "vars" ] } // builtins.removeAttrs args [ "jobspec" "vars" ]