CI: Root workflows only - no submodule pushes needed

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-04-19 06:53:12 -03:00
parent 0bebb0c1f2
commit 5103eec5ac

View file

@ -10,23 +10,19 @@ jobs:
build: build:
runs-on: gbo runs-on: gbo
steps: steps:
- name: Setup
run: |
cd /opt/gbo/work/botserver
git rebase --abort 2>/dev/null || true
git reset --hard HEAD && git clean -fd && git pull
git submodule update --init --recursive botlib botserver
- name: Build - name: Build
run: | run: |
cd /opt/gbo/work/botserver cd /opt/gbo/work/botserver
git reset --hard HEAD && git clean -fd
git pull
git submodule update --init --recursive botlib botserver
cargo build -p botserver cargo build -p botserver
- name: Deploy - name: Deploy
run: | run: |
echo "Deploying botserver..."
sudo incus exec system -- systemctl stop botserver || true sudo incus exec system -- systemctl stop botserver || true
sudo incus exec system -- pkill -x botserver || true sudo incus exec system -- pkill -x botserver || true
sleep 1 sleep 1
sudo incus file push /opt/gbo/work/botserver/target/debug/botserver system:/opt/gbo/bin/botserver --mode=0755 sudo incus file push /opt/gbo/work/botserver/target/debug/botserver system:/opt/gbo/bin/botserver --mode=0755
sudo incus exec system -- systemctl start botserver sudo incus exec system -- systemctl start botserver
sleep 2 sleep 2
sudo incus exec system -- pgrep -x botserver && echo "✅ Deployed" || echo "❌ Failed" sudo incus exec system -- pgrep -x botserver && echo "✅ BotServer Deployed" || echo "❌ Failed"