-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
25 lines (25 loc) · 903 Bytes
/
cloudbuild.yaml
File metadata and controls
25 lines (25 loc) · 903 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
steps:
- name: gcr.io/cloud-builders/docker
args:
- "build"
- "-t"
- "gcr.io/$PROJECT_ID/savemoney-api:$COMMIT_SHA"
- "."
- name: gcr.io/cloud-builders/docker
args:
- "push"
- "gcr.io/$PROJECT_ID/savemoney-api:$COMMIT_SHA"
- name: "gcr.io/cloud-builders/gcloud"
args:
- "run"
- "deploy"
- "savemoney-api"
- "--image=gcr.io/$PROJECT_ID/savemoney-api:$COMMIT_SHA"
- "--region=us-central1"
- "--cpu=2"
- "--memory=2048Mi"
- "--allow-unauthenticated"
- "--set-secrets=API_KEY=API_KEY:latest,AUTH_DOMAIN=AUTH_DOMAIN:latest,PROJECT_ID=PROJECT_ID:latest,STORAGE_BUCKET=STORAGE_BUCKET:latest,MESSAGING_SENDER_ID=MESSAGING_SENDER_ID:latest,APP_ID=APP_ID:latest,MEASUREMENT_ID=MEASUREMENT_ID:latest"
images:
- "gcr.io/$PROJECT_ID/savemoney-api:$COMMIT_SHA"
logsBucket: "gs://savemoney-api-buckets/logs"