gbserver/.forgejo/workflows/node.yaml
Rodrigo Rodriguez (Pragmatismo) 16d6c1db48
Some checks failed
GBCI / build (push) Failing after 7m11s
- The .env copy step was removed as it is no longer needed
- Added pkill to terminate gbserver before redeploying
2025-09-19 19:05:41 -03:00

36 lines
783 B
YAML

name: GBCI
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
jobs:
build:
runs-on: gbo
steps:
- name: Disable SSL verification (temporary)
run: git config --global http.sslVerify false
- uses: actions/checkout@v4
- name: Install Rust
uses: msrd0/rust-toolchain@v1
with:
toolchain: stable
- name: Run build
run: |
cargo build --locked
- name: Deploy binary and restart
run: |
lxc exec bot:pragmatismo-system -- systemctl stop system
pkill gbserver
sudo cp ./target/debug/gbserver /opt/gbo/bin/system
sudo chmod +x /opt/gbo/bin/system/gbserver
lxc exec bot:pragmatismo-system -- systemctl start system