mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-17 03:57:13 -05:00
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:
48
.github/workflows/health-check.yml
vendored
Normal file
48
.github/workflows/health-check.yml
vendored
Normal 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
|
||||
Reference in New Issue
Block a user