Fix Nomad job NixNG configuration name mismatch in Hydra

Signed-off-by: Magic_RB <magic_rb@redalder.org>
This commit is contained in:
Magic_RB 2023-07-10 20:58:25 +02:00
parent 247abc7a1b
commit 1e5e4bc061
No known key found for this signature in database
GPG key ID: 08D5287CC5DDCA0E
2 changed files with 3 additions and 2 deletions

View file

@ -46,7 +46,7 @@ in
flake_sha = vars.flake_sha; flake_sha = vars.flake_sha;
store_path = builtins.toJSON (builtins.mapAttrs (_: builtins.unsafeDiscardStringContext) { store_path = builtins.toJSON (builtins.mapAttrs (_: builtins.unsafeDiscardStringContext) {
hydra = config'.flake.nixngConfigurations.hydra.config.system.build.toplevel; hydra = config'.flake.nixngConfigurations.hydra.config.system.build.toplevel;
postgresql = config'.flake.nixngConfigurations.hydraPostgresql.config.system.build.toplevel; postgresql = config'.flake.nixngConfigurations.hydraPostgreSQL.config.system.build.toplevel;
}); });
}; };
}; };

View file

@ -11,6 +11,7 @@ variable "store_path" {
hydra = string hydra = string
postgresql = string postgresql = string
}) })
}
job "hydra" { job "hydra" {
@ -169,7 +170,7 @@ EOF
} }
config { config {
nix_flake_ref = "${var.flake_ref}#nixngConfigurations.hydraPostgresql.config.system.build.toplevel" nix_flake_ref = "${var.flake_ref}#nixngConfigurations.hydraPostgreSQL.config.system.build.toplevel"
nix_flake_sha = var.flake_sha nix_flake_sha = var.flake_sha
nix_flake_store_path = var.store_path.postgresql nix_flake_store_path = var.store_path.postgresql
entrypoint = [ "init" ] entrypoint = [ "init" ]