fix(ci): build with embed-ui feature instead of syncing files
This commit is contained in:
parent
0f7fe82523
commit
1e96b18c81
1 changed files with 2 additions and 8 deletions
|
|
@ -26,9 +26,9 @@ jobs:
|
|||
git clean -fd
|
||||
git pull
|
||||
git submodule update --init --recursive
|
||||
- name: Build
|
||||
- name: Build with embedded UI
|
||||
run: |
|
||||
CARGO_BUILD_JOBS=4 cargo build -p botserver --bin botserver
|
||||
CARGO_BUILD_JOBS=4 cargo build -p botserver --bin botserver --features embed-ui
|
||||
- name: Deploy to Stage
|
||||
run: |
|
||||
BINARY=/opt/gbo/work/target/debug/botserver
|
||||
|
|
@ -37,9 +37,3 @@ jobs:
|
|||
ssh -o StrictHostKeyChecking=no ${SYSTEM_USER}@${SYSTEM_HOST} "sudo mv /opt/gbo/bin/botserver-new /opt/gbo/bin/botserver && sudo chmod +x /opt/gbo/bin/botserver && sudo systemctl enable botserver && sudo systemctl start botserver"
|
||||
sleep 10
|
||||
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
|
||||
run: |
|
||||
# Sync to both possible paths, then copy bin/ui to botui/ui for consistency
|
||||
rsync -az --delete -e "ssh -o StrictHostKeyChecking=no" /opt/gbo/work/generalbots/botui/ui/ ${SYSTEM_USER}@${SYSTEM_HOST}:/opt/gbo/botui/ui/
|
||||
ssh -o StrictHostKeyChecking=no ${SYSTEM_USER}@${SYSTEM_HOST} "sudo incus exec system --project STAGE-GBO -- cp /opt/gbo/botui/ui/suite/chat/chat.html /opt/gbo/bin/ui/suite/chat/chat.html"
|
||||
ssh -o StrictHostKeyChecking=no ${SYSTEM_USER}@${SYSTEM_HOST} "sudo incus exec system --project STAGE-GBO -- ls -la /opt/gbo/bin/ui/suite/chat/chat.html"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue