mirror of
https://github.com/SebastianStork/nixos-config.git
synced 2026-03-22 15:29:07 +01:00
workflows/ci: Only build hosts that will be auto deployed
This commit is contained in:
parent
da5df4f2ee
commit
a828980065
1 changed files with 5 additions and 1 deletions
6
.github/workflows/ci.yml
vendored
6
.github/workflows/ci.yml
vendored
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue