Create .ssh folder on woodpecker actions

This commit is contained in:
Keannu Bernasol 2023-12-04 19:30:17 +08:00
parent a28ae19e1f
commit 9912ff4034

View file

@ -9,6 +9,7 @@ steps:
image: alpine image: alpine
commands: commands:
- apk add --no-cache openssh-client - apk add --no-cache openssh-client
- mkdir -p /root/.ssh/
- echo "$SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa - echo "$SSH_KEY" | tr -d '\r' > /root/.ssh/id_rsa
- chmod 600 /root/.ssh/id_rsa - chmod 600 /root/.ssh/id_rsa
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config - echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > /root/.ssh/config