Fix
Some checks failed
continuous-integration/drone/push Build is failing
continuous-integration/drone Build is failing

This commit is contained in:
Adam Štrauch 2021-10-26 23:38:19 +02:00
parent 119baa48c5
commit 5ba061895b
Signed by: cx
GPG Key ID: 018304FFA8988F8D

View File

@ -45,7 +45,7 @@ steps:
from_secret: SSH_KEY from_secret: SSH_KEY
commands: commands:
- apt update && apt install -y ssh - apt update && apt install -y ssh
- mkdir ~/.ssh && echo $SSH_KEY > ~/.ssh/id_key && chmod 600 ~/.ssh/id_key - mkdir ~/.ssh && echo $SSH_KEY > ~/.ssh/id_ed25519 && chmod 600 ~/.ssh/id_ed25519
- ssh-keyscan $NODE > ~/.ssh/known_hosts - ssh-keyscan $NODE > ~/.ssh/known_hosts
- scp node-api root@$NODE:/usr/local/bin/node-api_ - scp node-api root@$NODE:/usr/local/bin/node-api_
- ssh root@$NODE mv /usr/local/bin/node-api_ /usr/local/bin/node-api - ssh root@$NODE mv /usr/local/bin/node-api_ /usr/local/bin/node-api