mirror of
https://git.sr.ht/~magic_rb/dotfiles
synced 2024-11-29 03:26:13 +01:00
Nah it won't work
Signed-off-by: magic_rb <richard@brezak.sk>
This commit is contained in:
parent
0ca6ec76c4
commit
52684b1723
|
@ -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}";
|
||||||
|
|
|
@ -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" ]
|
||||||
|
|
Loading…
Reference in a new issue