mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-17 09:37:55 -05:00
- Add Railway configuration (railway.toml) - Add GitHub Actions workflows - Railway deployment automation - Python/Node.js testing - Health check monitoring - Add GitHub templates (CODEOWNERS, PR template) - Add requirements files if missing - Standardize deployment across all services This ensures consistent deployment patterns across the entire BlackRoad OS infrastructure. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
name: Deploy to Railway
|
|
|
|
on:
|
|
push:
|
|
branches: [main, master]
|
|
paths:
|
|
- '**/*.py'
|
|
- 'requirements.txt'
|
|
- 'railway-services/**'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
max-parallel: 5
|
|
matrix:
|
|
service:
|
|
- api-gateway
|
|
- agent-hub
|
|
- ws-server
|
|
- mesh-network
|
|
- vectordb
|
|
- event-stream
|
|
- message-queue
|
|
- tsdb
|
|
- llm-server
|
|
- ml-pipeline
|
|
- rag-service
|
|
- model-forge
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Railway CLI
|
|
run: |
|
|
npm install -g @railway/cli
|
|
|
|
- name: Deploy ${{ matrix.service }} to Railway
|
|
run: |
|
|
railway link ${{ secrets.RAILWAY_PROJECT_ID }}
|
|
railway up --service ${{ matrix.service }}
|
|
env:
|
|
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
|
|
|
|
- name: Wait for deployment
|
|
run: |
|
|
echo "⏳ Waiting for ${{ matrix.service }} to be ready..."
|
|
sleep 30
|
|
|
|
- name: Health Check
|
|
run: |
|
|
echo "🏥 Checking health of ${{ matrix.service }}..."
|
|
# Railway URL format: https://<service>.up.railway.app
|
|
# Health check would go here when service URLs are known
|
|
echo "✅ Deployment complete"
|