This commit is contained in:
parent
b534ee7c05
commit
d15aee9fa0
@ -45,8 +45,7 @@ steps:
|
||||
from_secret: SSH_KEY
|
||||
commands:
|
||||
- apt update && apt install -y ssh
|
||||
- mkdir ~/.ssh && echo $SSH_KEY > ~/.ssh/id_ed25519 && chmod 600 ~/.ssh/id_ed25519
|
||||
- cat ~/.ssh/id_ed25519
|
||||
- mkdir ~/.ssh && echo "$SSH_KEY" > ~/.ssh/id_ed25519 && chmod 600 ~/.ssh/id_ed25519
|
||||
- ssh-keyscan $NODE > ~/.ssh/known_hosts
|
||||
- scp node-api root@$NODE:/usr/local/bin/node-api_
|
||||
- ssh root@$NODE mv /usr/local/bin/node-api_ /usr/local/bin/node-api
|
||||
|
Loading…
Reference in New Issue
Block a user