File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 1+ [[build .env ]]
2+ name = " GOOGLE_BUILDABLE"
3+ value = " Dockerfile"
4+
Original file line number Diff line number Diff line change 44
55set -e
66
7+ # Get the directory where this script is located
8+ SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
9+ # Get the project root (parent of scripts directory)
10+ PROJECT_ROOT=" $( cd " $SCRIPT_DIR /.." && pwd) "
11+
712# Configuration
813SERVICE_NAME=" examples-copier"
914REGION=" ${1:- us-central1} "
10- ENV_FILE=" env-cloudrun.yaml"
15+ ENV_FILE=" $PROJECT_ROOT / env-cloudrun.yaml"
1116
1217# Colors for output
1318GREEN=' \033[0;32m'
@@ -57,7 +62,11 @@ echo ""
5762echo -e " ${BLUE} 🚀 Deploying...${NC} "
5863echo " "
5964
60- # Deploy to Cloud Run
65+ # Change to project root for deployment
66+ cd " $PROJECT_ROOT "
67+
68+ # Deploy to Cloud Run using Dockerfile
69+ # Note: Using --source with Dockerfile to ensure it uses Docker build, not buildpacks
6170gcloud run deploy " $SERVICE_NAME " \
6271 --source . \
6372 --region " $REGION " \
@@ -68,7 +77,8 @@ gcloud run deploy "$SERVICE_NAME" \
6877 --memory=512Mi \
6978 --timeout=300s \
7079 --concurrency=80 \
71- --port=8080
80+ --port=8080 \
81+ --platform=managed
7282
7383echo " "
7484echo -e " ${GREEN} ✅ Deployment complete!${NC} "
You can’t perform that action at this time.
0 commit comments