Fix deploy pipeline
Some checks failed
Unittests / unittests (push) Successful in 12s
Unittests / deploy-dev (push) Failing after 55s

This commit is contained in:
Adam Štrauch 2023-11-25 19:50:57 +01:00
parent 22646025e4
commit 6065697d64
Signed by: cx
GPG Key ID: 7262DAFE292BCE20

View File

@ -48,11 +48,10 @@ jobs:
docker run --rm --privileged -ti -v `pwd`:/srv golang:1.20-buster /bin/sh -c "cd /srv && go build"
# docker run --rm --privileged -ti -v `pwd`:/srv golang:1.20-buster /bin/sh -c "cd /srv && echo LS2 && ls"
ssh -o StrictHostKeyChecking=accept-new root@$HOST echo "Setting up host keys"
for NODE in $NODES; do
echo "\033[0;32mDeploying $NODE\033[0m"
echo "\033[1;33m.. scanning SSH keys\033[0m"
ssh-keyscan $NODE > ~/.ssh/known_hosts
ssh -o "StrictHostKeyChecking=no" root@NODE echo "Setting up key"
echo "\033[1;33m.. copying the binary\033[0m"
scp node-api root@$NODE:/usr/local/bin/node-api_
echo "\033[1;33m.. replacing the binary\033[0m"