#18 Implement much faster nix-instantiate
-based parsing.
Some checks failed
Deploy NixOS System Configurations to Silver-Flame Hosts / deploy (push) Failing after 1m58s
Some checks failed
Deploy NixOS System Configurations to Silver-Flame Hosts / deploy (push) Failing after 1m58s
Trigger workflow.
This commit is contained in:
parent
08ed44657e
commit
1f02be1fd5
@ -35,8 +35,12 @@ jobs:
|
|||||||
chmod 600 /tmp/key
|
chmod 600 /tmp/key
|
||||||
- name: Derive host IPs
|
- name: Derive host IPs
|
||||||
run: |
|
run: |
|
||||||
nix eval --json .#deploy.nodes --apply 'builtins.attrValues' |\
|
nix-shell -p nixfmt-rfc-style
|
||||||
jq -r '.[].hostname' | xargs echo > /tmp/hostlist
|
nix-instantiate --parse flake.nix |\
|
||||||
|
nixfmt |\
|
||||||
|
grep 'hostname =' |\
|
||||||
|
cut -d'"' -f2 |\
|
||||||
|
xargs echo > /tmp/hostlist
|
||||||
- name: Add host keys to known_hosts
|
- name: Add host keys to known_hosts
|
||||||
run: |
|
run: |
|
||||||
mkdir -p ~/.ssh && touch ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts
|
mkdir -p ~/.ssh && touch ~/.ssh/known_hosts && chmod 600 ~/.ssh/known_hosts
|
||||||
|
Loading…
Reference in New Issue
Block a user