mirror of
https://github.com/nmasur/dotfiles
synced 2025-07-05 11:30:13 +00:00
adjust workflow for nixos-anywhere
This commit is contained in:
11
.github/workflows/flame.yml
vendored
11
.github/workflows/flame.yml
vendored
@ -169,6 +169,17 @@ jobs:
|
||||
if: inputs.action == 'create'
|
||||
run: |
|
||||
nix run github:nix-community/nixos-anywhere -- --flake github:nmasur/dotfiles#flame --build-on remote --no-reboot --target-host ubuntu@${{ steps.host.outputs.stdout }}
|
||||
reboot now
|
||||
|
||||
- name: Wait on SSH After Reboot
|
||||
if: inputs.action == 'create'
|
||||
run: |
|
||||
for i in $(seq 1 15); do
|
||||
if $(nc -z -w 3 ${{ steps.host.outputs.stdout }} 22); then
|
||||
exit 0
|
||||
fi
|
||||
sleep 10
|
||||
done
|
||||
|
||||
- name: Copy Identity File to Host
|
||||
if: inputs.action == 'create'
|
||||
|
Reference in New Issue
Block a user