fix(ci): use /opt/gbo/work/generalbots workspace path
This commit is contained in:
parent
e8ef6c838f
commit
2669288f80
1 changed files with 12 additions and 10 deletions
|
|
@ -12,13 +12,19 @@ jobs:
|
||||||
SYSTEM_HOST: ${{ vars.SYSTEM_HOST }}
|
SYSTEM_HOST: ${{ vars.SYSTEM_HOST }}
|
||||||
SYSTEM_USER: gbuser
|
SYSTEM_USER: gbuser
|
||||||
steps:
|
steps:
|
||||||
|
- name: Setup
|
||||||
|
run: |
|
||||||
|
cd /opt/gbo/work/generalbots
|
||||||
|
git reset --hard HEAD
|
||||||
|
git clean -fd
|
||||||
|
git pull
|
||||||
|
git submodule update --init --recursive
|
||||||
|
mkdir -p /opt/gbo/work/target
|
||||||
|
mkdir -p /opt/gbo/bin
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
cd /opt/gbo/work/botserver
|
cd /opt/gbo/work/generalbots
|
||||||
git reset --hard HEAD && git clean -fd
|
CARGO_BUILD_JOBS=4 cargo build -p botserver --bin botserver
|
||||||
git pull
|
|
||||||
git submodule update --init --recursive botlib botserver
|
|
||||||
cargo build -p botserver
|
|
||||||
- name: Deploy to Stage
|
- name: Deploy to Stage
|
||||||
run: |
|
run: |
|
||||||
BINARY=/opt/gbo/work/target/debug/botserver
|
BINARY=/opt/gbo/work/target/debug/botserver
|
||||||
|
|
@ -29,8 +35,4 @@ jobs:
|
||||||
ssh -o StrictHostKeyChecking=no ${SYSTEM_USER}@${SYSTEM_HOST} "curl -sf http://localhost:8080/health && echo 'BotServer Deployed' || echo 'Failed'"
|
ssh -o StrictHostKeyChecking=no ${SYSTEM_USER}@${SYSTEM_HOST} "curl -sf http://localhost:8080/health && echo 'BotServer Deployed' || echo 'Failed'"
|
||||||
- name: Sync UI Files to Stage
|
- name: Sync UI Files to Stage
|
||||||
run: |
|
run: |
|
||||||
cd /opt/gbo/work/generalbots
|
rsync -az --delete -e "ssh -o StrictHostKeyChecking=no" /opt/gbo/work/generalbots/botui/ui/ ${SYSTEM_USER}@${SYSTEM_HOST}:/opt/gbo/data/botui/ui/
|
||||||
git reset --hard HEAD && git clean -fd
|
|
||||||
git pull
|
|
||||||
git submodule update --init --recursive
|
|
||||||
rsync -az --delete -e "ssh -o StrictHostKeyChecking=no" botui/ui/ ${SYSTEM_USER}@${SYSTEM_HOST}:/opt/gbo/data/botui/ui/
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue