fix(ci): Use rsync for deploy instead of incus
Some checks failed
BotServer CI/CD / build (push) Failing after 14s

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-03-31 18:16:56 -03:00
parent 64fea8ea4e
commit 1e14bd8b3b

View file

@ -62,10 +62,10 @@ jobs:
if: always()
run: sudo cp /tmp/build.log /tmp/botserver-$(date +%Y%m%d-%H%M%S).log || true
- name: Deploy via incus
- name: Deploy via rsync
run: |
ssh -o StrictHostKeyChecking=no system "pkill -f botserver || true; sleep 2; rm -f /opt/gbo/bin/botserver"
ssh administrator@63.141.255.9 "sudo incus file push alm-ci/opt/gbo/ci/botserver/target/debug/botserver system/opt/gbo/bin/botserver" 2>&1 | tee /tmp/deploy.log
rsync -avz -e "ssh -o StrictHostKeyChecking=no" /opt/gbo/ci/botserver/target/debug/botserver system:/opt/gbo/bin/botserver 2>&1 | tee /tmp/deploy.log
ssh -o StrictHostKeyChecking=no system "chmod +x /opt/gbo/bin/botserver && chown gbuser:gbuser /opt/gbo/bin/botserver && cd /opt/gbo/bin && nohup sudo -u gbuser ./botserver --noconsole >> /opt/gbo/logs/error.log 2>&1 &"
- name: Verify botserver started