This commit is contained in:
parent
4b823afc51
commit
119baa48c5
@ -46,7 +46,7 @@ steps:
|
|||||||
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_key && chmod 600 ~/.ssh/id_key
|
||||||
- ssh-keyscan rosti-node-x > ~/.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
|
||||||
- ssh root@$NODE systemctl restart node-api
|
- ssh root@$NODE systemctl restart node-api
|
||||||
|
Loading…
Reference in New Issue
Block a user