From a828980065ef19a4ccf4a37302034ede10484f80 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Fri, 27 Feb 2026 19:04:46 +0100 Subject: [PATCH] workflows/ci: Only build hosts that will be auto deployed --- .github/workflows/ci.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7da36fe..2fe3648 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,11 @@ jobs: printf "checks=%s" "$checks" >> "$GITHUB_OUTPUT" - id: hosts run: | - hosts=$(nix flake show --json | jq -c '.nixosConfigurations | keys') + hosts=$(nix eval .#nixosConfigurations --apply 'configs: + configs + |> builtins.attrNames + |> builtins.filter (name: configs.${name}.config.custom.services.comin.enable) + ' --json) printf "hosts=%s" "$hosts" >> "$GITHUB_OUTPUT" build-check: needs: parse-flake