workflows/ci: Only build hosts that will be auto deployed

This commit is contained in:
SebastianStork 2026-02-27 19:04:46 +01:00
parent da5df4f2ee
commit a828980065
Signed by: SebastianStork
SSH key fingerprint: SHA256:tRrGdjYOwgHxpSc/wTOZQZEjxcb15P0tyXRsbAfd+2Q

View file

@ -20,7 +20,11 @@ jobs:
printf "checks=%s" "$checks" >> "$GITHUB_OUTPUT" printf "checks=%s" "$checks" >> "$GITHUB_OUTPUT"
- id: hosts - id: hosts
run: | 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" printf "hosts=%s" "$hosts" >> "$GITHUB_OUTPUT"
build-check: build-check:
needs: parse-flake needs: parse-flake