forked from Bos55/nix-config
Build each host
This commit is contained in:
parent
90bd5ed66b
commit
4103c488b3
1 changed files with 9 additions and 2 deletions
11
.github/workflows/build.yml
vendored
11
.github/workflows/build.yml
vendored
|
|
@ -16,7 +16,8 @@ jobs:
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- name: "List hosts"
|
- name: "List hosts"
|
||||||
id: hosts
|
id: hosts
|
||||||
run: nix eval .#nixosConfigurations --apply builtins.attrNames --json
|
run: |
|
||||||
|
nix eval .#nixosConfigurations --apply builtins.attrNames --json
|
||||||
outputs:
|
outputs:
|
||||||
hosts: ${{ steps.hosts.outputs }}
|
hosts: ${{ steps.hosts.outputs }}
|
||||||
|
|
||||||
|
|
@ -30,5 +31,11 @@ jobs:
|
||||||
hostname: ${{ fromJSON(needs.determine_hosts.outputs.hosts) }}
|
hostname: ${{ fromJSON(needs.determine_hosts.outputs.hosts) }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- run: echo "${{ matrix.hostname }}"
|
- name: "Define host"
|
||||||
|
env:
|
||||||
|
hostname: ${{ matrix.hostname }}
|
||||||
|
run: |
|
||||||
|
echo "${hostname}"
|
||||||
|
- run: |
|
||||||
|
nixos-rebuild build --flake ".#${hostname}"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue