Compare commits

...

3 commits
v11.8 ... main

Author SHA1 Message Date
fdcb3426c3
Fix SCP command in deployment workflow and re-enable node-22.rosti.cz
All checks were successful
Unittests / unittests (push) Successful in 46s
Unittests / deploy-dev (push) Successful in 58s
Release / deploy-production (release) Successful in 1m8s
2026-01-06 09:56:41 +01:00
2f444f5e65
Clear known hosts before deploying to nodes
All checks were successful
Unittests / unittests (push) Successful in 11s
Unittests / deploy-dev (push) Successful in 49s
Release / deploy-production (release) Successful in 1m10s
2026-01-05 16:42:31 +01:00
2c8a2a3575
Disable node-22.rosti.cz in deployment due to SCP issues
Some checks failed
Unittests / unittests (push) Failing after 3s
Unittests / deploy-dev (push) Successful in 1m11s
Release / deploy-production (release) Failing after 1m17s
2026-01-05 16:37:24 +01:00

View file

@ -20,11 +20,13 @@ jobs:
docker run --rm --privileged -ti -v `pwd`:/srv golang:1.25-trixie /bin/sh -c "cd /srv && go build" docker run --rm --privileged -ti -v `pwd`:/srv golang:1.25-trixie /bin/sh -c "cd /srv && go build"
for NODE in $NODES; do for NODE in $NODES; do
# Clear known hosts
rm -f ~/.ssh/known_hosts
echo "\033[0;32mDeploying $NODE\033[0m" echo "\033[0;32mDeploying $NODE\033[0m"
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"