Some checks failed
☁️ Cloudflare Deployment / Deploy Workers (push) Has been cancelled
🚂 Railway Deployment / Deploy to Railway (push) Has been cancelled
🌐 Unified Multi-Platform Deployment / 🔍 Prepare (push) Has been cancelled
▲ Vercel Deployment / Deploy to Vercel (push) Has been cancelled
🌐 Unified Multi-Platform Deployment / 🚀 Deploy all platforms (push) Has been cancelled
🔒 Security Scanning / 📦 Dependencies (push) Failing after 40s
🔒 Security Scanning / 🔐 Secrets (push) Failing after 1m34s
💾 Automated Backup / 📦 Backup infrastructure (push) Failing after 45s
🏥 Infrastructure Health Monitoring / 🔍 Health Check (push) Successful in 2s
99 lines
3.4 KiB
Bash
Executable File
99 lines
3.4 KiB
Bash
Executable File
#!/bin/bash
|
|
# BlackRoad-Private Infrastructure Enhancement - Installation Script
|
|
# Automates copying files to BlackRoad-Private repository
|
|
|
|
set -e
|
|
|
|
# Colors for output
|
|
GREEN='\033[0;32m'
|
|
BLUE='\033[0;34m'
|
|
YELLOW='\033[1;33m'
|
|
NC='\033[0m' # No Color
|
|
|
|
echo -e "${BLUE}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
|
|
echo -e "${BLUE} BlackRoad-Private Infrastructure Enhancement${NC}"
|
|
echo -e "${BLUE} Installation Script${NC}"
|
|
echo -e "${BLUE}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
|
|
echo ""
|
|
|
|
# Detect BlackRoad-Private repository location
|
|
if [ -d ~/BlackRoad-Private ]; then
|
|
TARGET=~/BlackRoad-Private
|
|
elif [ -d ~/blackroad-private ]; then
|
|
TARGET=~/blackroad-private
|
|
else
|
|
echo -e "${YELLOW}BlackRoad-Private repository not found.${NC}"
|
|
echo "Please enter the path to your BlackRoad-Private repository:"
|
|
read -r TARGET
|
|
|
|
if [ ! -d "$TARGET" ]; then
|
|
echo "❌ Directory not found: $TARGET"
|
|
exit 1
|
|
fi
|
|
fi
|
|
|
|
echo -e "${GREEN}✓${NC} Found repository: $TARGET"
|
|
echo ""
|
|
|
|
# Check if we're in the enhancements directory
|
|
if [ ! -f "railway.json" ]; then
|
|
echo "❌ Please run this script from the blackroad-private-enhancements directory"
|
|
exit 1
|
|
fi
|
|
|
|
echo "📦 Installing files..."
|
|
echo ""
|
|
|
|
# Create necessary directories
|
|
mkdir -p "$TARGET/.github/workflows"
|
|
mkdir -p "$TARGET/docs"
|
|
|
|
# Copy configuration files
|
|
echo " → Copying platform configurations..."
|
|
cp railway.json "$TARGET/"
|
|
cp railway.toml "$TARGET/"
|
|
cp wrangler.toml "$TARGET/"
|
|
cp vercel.json "$TARGET/"
|
|
echo -e "${GREEN} ✓${NC} 4 configuration files copied"
|
|
|
|
# Copy workflows
|
|
echo " → Copying GitHub workflows..."
|
|
cp .github/workflows/*.yml "$TARGET/.github/workflows/"
|
|
echo -e "${GREEN} ✓${NC} 7 workflow files copied"
|
|
|
|
# Copy documentation
|
|
echo " → Copying documentation..."
|
|
cp README.md "$TARGET/INFRASTRUCTURE.md"
|
|
cp -r docs/* "$TARGET/docs/"
|
|
cp BLACKROAD_PRIVATE_ENHANCEMENTS_COMPLETE.md "$TARGET/"
|
|
echo -e "${GREEN} ✓${NC} Documentation copied"
|
|
|
|
echo ""
|
|
echo -e "${GREEN}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
|
|
echo -e "${GREEN}✅ Installation Complete!${NC}"
|
|
echo -e "${GREEN}━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━${NC}"
|
|
echo ""
|
|
echo "📋 Next Steps:"
|
|
echo ""
|
|
echo "1. Add GitHub Secrets (11 required):"
|
|
echo " → Go to: https://github.com/BlackRoad-OS/BlackRoad-Private/settings/secrets/actions"
|
|
echo " → Add secrets for Railway, Cloudflare, and Vercel"
|
|
echo " → See docs/QUICK_START.md for details"
|
|
echo ""
|
|
echo "2. Commit and Deploy:"
|
|
echo " → cd $TARGET"
|
|
echo " → git add ."
|
|
echo " → git commit -m \"feat: Add multi-platform deployment infrastructure\""
|
|
echo " → git push origin main"
|
|
echo ""
|
|
echo "3. Verify:"
|
|
echo " → Check GitHub Actions: https://github.com/BlackRoad-OS/BlackRoad-Private/actions"
|
|
echo " → Review workflow summaries"
|
|
echo ""
|
|
echo "📚 Documentation:"
|
|
echo " → Quick Start: $TARGET/docs/QUICK_START.md"
|
|
echo " → Deployment: $TARGET/docs/DEPLOYMENT_SUMMARY.md"
|
|
echo " → Troubleshooting: $TARGET/docs/TROUBLESHOOTING.md"
|
|
echo ""
|
|
echo -e "${BLUE}Happy Deploying! 🚀${NC}"
|