Skip to content

update seed to align with the new update #41

update seed to align with the new update

update seed to align with the new update #41

name: Deploy Health Bridge - Staging
on:
push:
branches: [ "staging" ]
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build in release mode
run: cargo build --release
- name: Stop service before replacing binary
run: systemctl --user stop health-bridge
- name: Copy binary to deployment location
run: |
mkdir -p /home/afric/apps/hb/target/release
cp target/release/health-bridge /home/afric/apps/hb/target/release/
chmod +x /home/afric/apps/hb/target/release/health-bridge
- name: Start service
run: systemctl --user start health-bridge
- name: Wait for service to start
run: sleep 2
- name: Check service status
run: systemctl --user status health-bridge --no-pager
- name: Show recent logs
run: journalctl --user -u health-bridge -n 20 --no-pager