-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeploy.sh
More file actions
25 lines (21 loc) · 702 Bytes
/
deploy.sh
File metadata and controls
25 lines (21 loc) · 702 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
#!/bin/bash
# Deploy Expense Manager Backend to Google Cloud Run
# This script assumes you have gcloud CLI installed and configured
# Set your project ID
PROJECT_ID="your-project-id"
SERVICE_NAME="expense-manager-backend"
REGION="us-central1"
# Build and deploy the container
gcloud run deploy $SERVICE_NAME \
--image gcr.io/$PROJECT_ID/expense-manager-backend \
--platform managed \
--region $REGION \
--port 8080 \
--memory 512Mi \
--cpu 1 \
--max-instances 10 \
--concurrency 80 \
--env-vars-file .env \
--allow-unauthenticated
echo "Deployment completed. Your service is available at:"
gcloud run services describe $SERVICE_NAME --region $REGION --format 'value(status.url)'