web-client/.gitea/workflows/deploy.yml
Markov 2f1778c821
Some checks failed
Deploy Web Client / deploy (push) Has been cancelled
feat: BFF (Python FastAPI) — proxy to Tracker with JWT auth
- BFF on port 8200: auth + proxy to tracker
- All /api/* routes go through BFF
- WebSocket proxy with JWT auth
- Tracker no longer exposed to internet
- Logging on all requests
- Removed Next.js API routes for auth (BFF handles it)
2026-02-15 19:44:55 +01:00

36 lines
898 B
YAML

name: Deploy Web Client
on:
push:
branches: [main]
jobs:
deploy:
runs-on: self-hosted
steps:
- name: Pull latest code
run: |
cd /root/projects/team-board/web-client
git pull origin main
- name: Install and build frontend
run: |
cd /root/projects/team-board/web-client
npm install --production=false
npm run build
- name: Install BFF dependencies
run: |
/opt/team-board-bff-venv/bin/pip install -r /root/projects/team-board/web-client/bff/requirements.txt -q
- name: Restart services
run: |
systemctl restart team-board-web
systemctl restart team-board-bff
- name: Health check
run: |
sleep 8
curl -sf -o /dev/null http://localhost:3100/login || exit 1
echo "✅ Web client deployed successfully"