ssh sanity check
This commit is contained in:
parent
a3751b16cd
commit
7ae697b2f2
1 changed files with 7 additions and 0 deletions
|
|
@ -48,6 +48,13 @@ jobs:
|
|||
ssh-keyscan -H $PROXMOX_HOST >> ~/.ssh/known_hosts
|
||||
ssh-keyscan -H $NIXOS_BUILER_HOST >> ~/.ssh/known_hosts
|
||||
|
||||
- name: Test SSH connection
|
||||
run: |
|
||||
echo "Testing SSH connection to $PROXMOX_HOST..."
|
||||
ssh -o StrictHostKeyChecking=yes $PROXMOX_USER@$PROXMOX_HOST "echo 'SSH success. Hostname:' && hostname"
|
||||
echo "Testing SSH connection to $NIXOS_BUILER_HOST..."
|
||||
ssh -o StrictHostKeyChecking=yes $NIXOS_BUILER_USER@$NIXOS_BUILER_HOST "echo 'SSH success. Hostname:' && hostname"
|
||||
|
||||
- name: Build NixOS image
|
||||
run: nix build .#base --builders "ssh://$NIXOS_BUILER_USER@$NIXOS_BUILER_HOST x86_64-linux" --max-jobs 0
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue