Compare commits
No commits in common. "main" and "v11.8-2" have entirely different histories.
1 changed files with 3 additions and 4 deletions
|
|
@ -11,7 +11,8 @@ jobs:
|
|||
deploy-production:
|
||||
runs-on: [amd64, prod]
|
||||
env:
|
||||
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
|
||||
# node-22.rosti.cz disabled because scp doesn't work
|
||||
NODES: node-23.rosti.cz node-24.rosti.cz node-25.rosti.cz node-28.rosti.cz node-29.rosti.cz
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: deploy
|
||||
|
|
@ -20,13 +21,11 @@ jobs:
|
|||
docker run --rm --privileged -ti -v `pwd`:/srv golang:1.25-trixie /bin/sh -c "cd /srv && go build"
|
||||
|
||||
for NODE in $NODES; do
|
||||
# Clear known hosts
|
||||
rm -f ~/.ssh/known_hosts
|
||||
echo "\033[0;32mDeploying $NODE\033[0m"
|
||||
echo "\033[1;33m.. scanning SSH keys\033[0m"
|
||||
ssh -o "StrictHostKeyChecking=no" root@$NODE echo "Setting up key"
|
||||
echo "\033[1;33m.. copying the binary\033[0m"
|
||||
scp -O node-api root@$NODE:/usr/local/bin/node-api_
|
||||
scp node-api root@$NODE:/usr/local/bin/node-api_
|
||||
echo "\033[1;33m.. replacing the binary\033[0m"
|
||||
ssh root@$NODE mv /usr/local/bin/node-api_ /usr/local/bin/node-api
|
||||
echo "\033[1;33m.. restarting service\033[0m"
|
||||
|
|
|
|||
Loading…
Reference in a new issue