change ssh-add method
All checks were successful
Deploy zones / Deploy-Zones (push) Successful in 11s

This commit is contained in:
Hannaeko 2023-05-28 12:54:57 +02:00
parent 5822933464
commit 16d98603e9

View file

@ -20,7 +20,7 @@ jobs:
- name: Configure SSH client - name: Configure SSH client
run: | run: |
eval `ssh-agent -s` eval `ssh-agent -s`
ssh-add - <<< "${{ secrets.SSH_PRIVATE_KEY }}" echo "${{ secrets.SSH_PRIVATE_KEY }}" | tr -d '\r' | ssh-add -
mkdir -p $HOME/.ssh mkdir -p $HOME/.ssh
chmod 700 $HOME/.ssh chmod 700 $HOME/.ssh
echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> $HOME/.ssh/known_hosts echo "${{ secrets.SSH_KNOWN_HOSTS }}" >> $HOME/.ssh/known_hosts