From 1e5e4bc061c5ad1c72604539b898b9d10c35b6d9 Mon Sep 17 00:00:00 2001 From: Magic_RB Date: Mon, 10 Jul 2023 20:58:25 +0200 Subject: [PATCH] Fix Nomad job NixNG configuration name mismatch in Hydra Signed-off-by: Magic_RB --- terranix/containers/hydra/default.nix | 2 +- terranix/containers/hydra/job.hcl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/terranix/containers/hydra/default.nix b/terranix/containers/hydra/default.nix index 6476278..294ae75 100644 --- a/terranix/containers/hydra/default.nix +++ b/terranix/containers/hydra/default.nix @@ -46,7 +46,7 @@ in flake_sha = vars.flake_sha; store_path = builtins.toJSON (builtins.mapAttrs (_: builtins.unsafeDiscardStringContext) { 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; }); }; }; diff --git a/terranix/containers/hydra/job.hcl b/terranix/containers/hydra/job.hcl index 28827f9..9a960b3 100644 --- a/terranix/containers/hydra/job.hcl +++ b/terranix/containers/hydra/job.hcl @@ -11,6 +11,7 @@ variable "store_path" { hydra = string postgresql = string }) +} job "hydra" { @@ -169,7 +170,7 @@ EOF } 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_store_path = var.store_path.postgresql entrypoint = [ "init" ]