diff --git a/.forgejo/workflows/botserver.yaml b/.forgejo/workflows/botserver.yaml index 123a3edb..0af23dbd 100644 --- a/.forgejo/workflows/botserver.yaml +++ b/.forgejo/workflows/botserver.yaml @@ -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