This commit is contained in:
parent
2e3a61d756
commit
7f2f48c2ab
1 changed files with 23 additions and 22 deletions
|
@ -2,34 +2,35 @@ name: GBCI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ "main" ]
|
branches: ["main"]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: gbo
|
runs-on: gbo
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Disable SSL verification (temporary)
|
- name: Disable SSL verification (temporary)
|
||||||
run: git config --global http.sslVerify false
|
run: git config --global http.sslVerify false
|
||||||
|
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Install Rust
|
- name: Install Rust
|
||||||
uses: msrd0/rust-toolchain@v1
|
uses: msrd0/rust-toolchain@v1
|
||||||
with:
|
with:
|
||||||
toolchain: stable
|
toolchain: stable
|
||||||
|
|
||||||
- name: Run build
|
- name: Run build
|
||||||
run: cargo build --locked
|
run: |
|
||||||
|
sudo cp /opt/gbo/bin/system/.env .
|
||||||
|
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
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
lxc exec bot:pragmatismo-system -- systemctl start system
|
|
||||||
|
|
||||||
|
lxc exec bot:pragmatismo-system -- systemctl start system
|
||||||
|
|
Loading…
Add table
Reference in a new issue