- The .env copy step was removed as it is no longer needed
Some checks failed
GBCI / build (push) Failing after 7m11s

- Added pkill to terminate gbserver before redeploying
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-09-19 19:05:41 -03:00
parent 3315198bab
commit 16d6c1db48

View file

@ -23,12 +23,12 @@ jobs:
- name: Run build - name: Run build
run: | run: |
sudo cp /opt/gbo/bin/system/.env .
cargo build --locked cargo build --locked
- name: Deploy binary and restart - name: Deploy binary and restart
run: | run: |
lxc exec bot:pragmatismo-system -- systemctl stop system lxc exec bot:pragmatismo-system -- systemctl stop system
pkill gbserver
sudo cp ./target/debug/gbserver /opt/gbo/bin/system sudo cp ./target/debug/gbserver /opt/gbo/bin/system
sudo chmod +x /opt/gbo/bin/system/gbserver sudo chmod +x /opt/gbo/bin/system/gbserver