Compare commits
1 commit
| Author | SHA1 | Date | |
|---|---|---|---|
| fdcb3426c3 |
1 changed files with 2 additions and 3 deletions
|
|
@ -11,8 +11,7 @@ jobs:
|
||||||
deploy-production:
|
deploy-production:
|
||||||
runs-on: [amd64, prod]
|
runs-on: [amd64, prod]
|
||||||
env:
|
env:
|
||||||
# node-22.rosti.cz disabled because scp doesn't work
|
NODES: node-22.rosti.cz node-23.rosti.cz node-24.rosti.cz node-25.rosti.cz node-28.rosti.cz node-29.rosti.cz
|
||||||
NODES: node-23.rosti.cz node-24.rosti.cz node-25.rosti.cz node-28.rosti.cz node-29.rosti.cz
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: deploy
|
- name: deploy
|
||||||
|
|
@ -27,7 +26,7 @@ jobs:
|
||||||
echo "\033[1;33m.. scanning SSH keys\033[0m"
|
echo "\033[1;33m.. scanning SSH keys\033[0m"
|
||||||
ssh -o "StrictHostKeyChecking=no" root@$NODE echo "Setting up key"
|
ssh -o "StrictHostKeyChecking=no" root@$NODE echo "Setting up key"
|
||||||
echo "\033[1;33m.. copying the binary\033[0m"
|
echo "\033[1;33m.. copying the binary\033[0m"
|
||||||
scp node-api root@$NODE:/usr/local/bin/node-api_
|
scp -O node-api root@$NODE:/usr/local/bin/node-api_
|
||||||
echo "\033[1;33m.. replacing the binary\033[0m"
|
echo "\033[1;33m.. replacing the binary\033[0m"
|
||||||
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
|
||||||
echo "\033[1;33m.. restarting service\033[0m"
|
echo "\033[1;33m.. restarting service\033[0m"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue