From 087d17c681067e1004b27d3b205e721569687e4b Mon Sep 17 00:00:00 2001 From: Pierre Bourdon Date: Wed, 10 Jul 2024 18:52:43 +0200 Subject: [PATCH] tf/hydra: add a project/jobset for infra machine configurations --- terraform/hydra.nix | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/terraform/hydra.nix b/terraform/hydra.nix index 183c64c..5e62bcb 100644 --- a/terraform/hydra.nix +++ b/terraform/hydra.nix @@ -111,5 +111,32 @@ in } ]; }; + + resource.hydra_project.infra = { + name = "infra"; + display_name = "ForkOS Infra"; + description = "ForkOS infra repository"; + homepage = "https://git.lix.system/the-distro/infra"; + owner = "terraform"; + enabled = true; + visible = true; + }; + + resource.hydra_jobset.infra_main = { + project = config.resource.hydra_project.infra.name; + state = "enabled"; + visible = true; + name = "main"; + type = "flake"; + description = "main branch for the infra repo"; + + flake_uri = "git+https://git.lix.systems/the-distro/infra"; + + check_interval = 600; + scheduling_shares = 3000; + keep_evaluations = 5; + + email_notifications = false; + }; }; }