-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeploy.sh
More file actions
executable file
·43 lines (32 loc) · 973 Bytes
/
Copy pathdeploy.sh
File metadata and controls
executable file
·43 lines (32 loc) · 973 Bytes
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
#!/bin/bash
set -e
# Ensure we are in the project root
cd "$(dirname "$0")"
echo "🚀 Starting Deployment to Google Agent Engine..."
# Check if .env exists
if [ ! -f procurement/.env ]; then
echo "❌ Error: procurement/.env file not found!"
exit 1
fi
# Load environment variables
export $(grep -v '^#' procurement/.env | xargs)
# Check for required environment variables
if [ -z "$GOOGLE_CLOUD_PROJECT" ]; then
echo "❌ Error: GOOGLE_CLOUD_PROJECT is not set in .env"
exit 1
fi
if [ -z "$GOOGLE_CLOUD_STORAGE_BUCKET" ]; then
echo "❌ Error: GOOGLE_CLOUD_STORAGE_BUCKET is not set in .env"
exit 1
fi
echo "📦 deploying with local ag_ui_adk..."
# Run the python deployment script
# We use the venv python if available, otherwise system python
if [ -d ".venv" ]; then
PYTHON_CMD=".venv/bin/python"
else
PYTHON_CMD="python3"
fi
echo "Using Python: $PYTHON_CMD"
$PYTHON_CMD deploy_agent.py
echo "✅ Deployment script finished."