-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·45 lines (38 loc) · 1.32 KB
/
deploy.sh
File metadata and controls
executable file
·45 lines (38 loc) · 1.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/bash
# --- SYLVA Bridge Deployment Script ---
# This script automates the deployment of the SYLVA Bridge (Reasoning Core)
# to Google Cloud Run.
# 1. Configuration
SERVICE_NAME="sylva-bridge"
REGION="us-central1"
SOURCE_DIR="./bridge"
echo "----------------------------------------------------"
echo "🚀 Starting Deployment for SYLVA Bridge..."
echo "📍 Target Service: $SERVICE_NAME"
echo "📍 Target Region: $REGION"
echo "----------------------------------------------------"
# 2. Check for gcloud CLI
if ! command -v gcloud &> /dev/null
then
echo "❌ Error: gcloud CLI is not installed. Please install it first."
exit 1
fi
# 3. Execution
echo "📦 Packaging and deploying from $SOURCE_DIR..."
gcloud run deploy $SERVICE_NAME \
--source $SOURCE_DIR \
--region $REGION \
--platform managed \
--allow-unauthenticated
# 4. Result
if [ $? -eq 0 ]; then
echo "----------------------------------------------------"
echo "✅ Deployment Successful!"
echo "🔗 You can now update your Driver's .env with the new BRIDGE_URL."
echo "----------------------------------------------------"
else
echo "----------------------------------------------------"
echo "❌ Deployment Failed. Please check the logs above."
echo "----------------------------------------------------"
exit 1
fi