Fix deploy pipeline
This commit is contained in:
parent
22646025e4
commit
6065697d64
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user