bug fixing and deploy and build diagnostics
This commit is contained in:
@@ -54,6 +54,7 @@ DRY_RUN=false
|
||||
CANARY=false
|
||||
TAILSCALE=false
|
||||
TAILSCALE_NODE=""
|
||||
FLEET=false
|
||||
for arg in "$@"; do
|
||||
case $arg in
|
||||
--quick) QUICK=true ;;
|
||||
@@ -65,9 +66,30 @@ for arg in "$@"; do
|
||||
--canary) CANARY=true ;;
|
||||
--tailscale) TAILSCALE=true ;;
|
||||
--tailscale-node=*) TAILSCALE_NODE="${arg#*=}" ;;
|
||||
--fleet) FLEET=true ;;
|
||||
esac
|
||||
done
|
||||
|
||||
# Fleet deploy: .228 → .198 → all 3 Tailscale nodes (all 5 servers)
|
||||
if [ "$FLEET" = true ]; then
|
||||
echo "╔════════════════════════════════════════════════════════════════╗"
|
||||
echo "║ FLEET DEPLOY — All 5 nodes (.228, .198, Arch 1/2/3) ║"
|
||||
echo "╚════════════════════════════════════════════════════════════════╝"
|
||||
echo ""
|
||||
echo "Phase 1: Build + deploy to .228 (primary build server)"
|
||||
"$0" --live || { echo "FAILED: .228 deploy"; exit 1; }
|
||||
echo ""
|
||||
echo "Phase 2: Copy to .198 (LAN secondary)"
|
||||
"$0" --both || { echo "WARNING: .198 deploy failed (continuing)"; }
|
||||
echo ""
|
||||
echo "Phase 3: Deploy to all Tailscale nodes (Arch 1/2/3)"
|
||||
"$SCRIPT_DIR/deploy-tailscale.sh" --all || { echo "WARNING: Some Tailscale nodes failed"; }
|
||||
echo ""
|
||||
echo "════════════════════════════════════════════════════════════════"
|
||||
echo "Fleet deploy complete."
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Tailscale deploy: delegate to deploy-tailscale.sh
|
||||
if [ "$TAILSCALE" = true ]; then
|
||||
echo "Deploying to all Tailscale nodes..."
|
||||
@@ -300,6 +322,8 @@ fi
|
||||
# When --both: deploy to 228 first, then copy to 198
|
||||
if [ "$BOTH" = true ]; then
|
||||
echo "Deploying to both servers (228, then 198)..."
|
||||
# Release lock so the recursive --live call can acquire it
|
||||
rm -rf "$LOCK_DIR" 2>/dev/null; trap - EXIT
|
||||
"$0" --live
|
||||
echo ""
|
||||
echo "📤 Copying to 192.168.1.198 (no rsync/cargo on that node)..."
|
||||
|
||||
Reference in New Issue
Block a user