add SSH key to agent

This commit is contained in:
Kiara Grouwstra 2025-07-15 11:41:46 +02:00
parent e795950679
commit 72ea8777a1
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -13,12 +13,14 @@ jobs:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up SSH key to access age secrets - name: Set up SSH key for age secrets and SSH
run: | run: |
env env
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)"
ssh-add ~/.ssh/id_ed25519
- name: Deploy - name: Deploy
run: nix-shell --run 'nixops4 apply default' run: nix-shell --run 'nixops4 apply default'