ci: Decode SSH key
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Glenn Y. Rolland 2023-02-21 13:09:02 +01:00
parent 002064ee72
commit b41c034f6a

View file

@ -75,9 +75,9 @@ steps:
SSH_PRIVATE_KEY: SSH_PRIVATE_KEY:
from_secret: SSH_PRIVATE_KEY from_secret: SSH_PRIVATE_KEY
commands: commands:
- apk update && apk add ssh - apk update && apk add openssh-client
- mkdir -p ~/.ssh && chmod 700 ~/.ssh - mkdir -p ~/.ssh && chmod 700 ~/.ssh
- 'echo "${SSH_PRIVATE_KEY}" > ~/.ssh/deploy_key' - 'echo "${SSH_PRIVATE_KEY}" | base64 -d > ~/.ssh/deploy_key'
- chmod 600 ~/.ssh/deploy_key - chmod 600 ~/.ssh/deploy_key
- 'ssh -i ~/.ssh/deploy_key ${SSH_USER}@${SSH_HOST} ls -l /' - 'ssh -i ~/.ssh/deploy_key ${SSH_USER}@${SSH_HOST} ls -l /'