create ssh dir
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Pavel 2023-11-12 23:03:55 +03:00
parent 8be4d20038
commit 78b447d049

View File

@ -15,6 +15,7 @@ steps:
from_secret: ssh_key from_secret: ssh_key
commands: commands:
- apk add --no-cache git openssh - apk add --no-cache git openssh
- mkdir -p $HOME/.ssh
- echo "$SSH_KEY" > $HOME/.ssh/id_rsa - echo "$SSH_KEY" > $HOME/.ssh/id_rsa
- chmod 600 $HOME/.ssh/known_hosts - chmod 600 $HOME/.ssh/known_hosts
- ssh-keyscan -H git.neur0tx.site > ~/.ssh/known_hosts 2> /dev/null - ssh-keyscan -H git.neur0tx.site > ~/.ssh/known_hosts 2> /dev/null