run ssh commands thru the shell (which has openssh)

This commit is contained in:
Kiara Grouwstra 2025-07-15 12:11:59 +02:00
parent 72ea8777a1
commit 9c7d917a0c
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -19,8 +19,8 @@ jobs:
mkdir -p ~/.ssh mkdir -p ~/.ssh
echo "${{ secrets.CD_SSH_KEY }}" > ~/.ssh/id_ed25519 echo "${{ secrets.CD_SSH_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519 chmod 600 ~/.ssh/id_ed25519
eval "$(ssh-agent -s)" nix-shell --run 'eval "$(ssh-agent -s)"'
ssh-add ~/.ssh/id_ed25519 nix-shell --run 'ssh-add ~/.ssh/id_ed25519'
- name: Deploy - name: Deploy
run: nix-shell --run 'nixops4 apply default' run: nix-shell --run 'nixops4 apply default'