CD: lump SSH commands into a single shell invocation

This commit is contained in:
Kiara Grouwstra 2025-07-15 12:54:00 +02:00
parent 980a994f83
commit 695ea9edf6
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

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