CD: lump SSH commands into a single shell invocation (#462)

Reviewed-on: Fediversity/Fediversity#462
Co-authored-by: Kiara Grouwstra <kiara@procolix.eu>
Co-committed-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
Kiara Grouwstra 2025-07-15 13:00:47 +02:00 committed by kiara Grouwstra
parent 980a994f83
commit f2017aaeb4

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'