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
|
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}";
|
||||||
|
|
|
@ -9,8 +9,11 @@
|
||||||
enabled = true;
|
enabled = true;
|
||||||
inherit vars;
|
inherit vars;
|
||||||
};
|
};
|
||||||
lifecycle.ignore_changes = [
|
lifecycle = {
|
||||||
"hcl2[0].vars[\"flake_ref\"]"
|
ignore_changes = [
|
||||||
"hcl2[0].vars[\"flake_sha\"]"
|
"hcl2[0].vars[\"flake_ref\"]"
|
||||||
];
|
"hcl2[0].vars[\"flake_sha\"]"
|
||||||
|
];
|
||||||
|
create_before_destroy = true;
|
||||||
|
};
|
||||||
} // builtins.removeAttrs args [ "jobspec" "vars" ]
|
} // builtins.removeAttrs args [ "jobspec" "vars" ]
|
||||||
|
|
Loading…
Reference in a new issue