fix: Add Railway deployment configs and GitHub workflows

- 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>
This commit is contained in:
Alexa Louise
2025-12-10 15:35:09 -06:00
parent 5b8f5be59a
commit c00b6ee2a1
30 changed files with 2712 additions and 198 deletions

48
.github/workflows/health-check.yml vendored Normal file
View File

@@ -0,0 +1,48 @@
name: Production Health Check
on:
schedule:
# Run every hour
- cron: '0 * * * *'
workflow_dispatch:
jobs:
health-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Check service health
run: |
echo "Checking health endpoints..."
# Read service URLs from environment or config
SERVICES=(
"https://api.blackroad.io/health"
"https://agents.blackroad.io/health"
"https://monitoring.blackroad.io/health"
)
FAILED=0
for url in "${SERVICES[@]}"; do
echo "Testing: $url"
if curl -f -s -o /dev/null -w "%{http_code}" "$url" | grep -q "200"; then
echo "✅ $url is healthy"
else
echo "❌ $url is unhealthy"
FAILED=$((FAILED + 1))
fi
done
if [ $FAILED -gt 0 ]; then
echo "⚠️ $FAILED service(s) failed health check"
exit 1
fi
- name: Notify on failure
if: failure()
run: |
echo "Health check failed! Notification would be sent here."
# Add Slack/Discord/email notification here