Skip to content

Commit 8adf704

Browse files
committed
refactor: streamline build and deployment process using Cloud Build and Terraform
1 parent 90555b3 commit 8adf704

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

build-and-deploy.sh

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,11 @@
22
set -e
33

44
PROJECT_ID="ai-credit-product"
5-
SERVICE_NAME="naqa-api"
6-
REGION="us-central1"
7-
IMAGE_NAME="gcr.io/$PROJECT_ID/$SERVICE_NAME"
85

9-
echo "🚀 Building and deploying $SERVICE_NAME..."
10-
11-
docker build -t $IMAGE_NAME:latest .
12-
docker push $IMAGE_NAME:latest
6+
echo "🚀 Building with Cloud Build..."
7+
gcloud builds submit --config cloudbuild.yaml --project $PROJECT_ID
138

9+
echo "🚀 Deploying with Terraform..."
1410
cd terraform
1511
terraform init
1612
terraform apply -auto-approve

0 commit comments

Comments
 (0)