-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
53 lines (53 loc) · 1.87 KB
/
cloudbuild.yaml
File metadata and controls
53 lines (53 loc) · 1.87 KB
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
44
45
46
47
48
49
50
51
52
53
steps:
- name: gcr.io/cloud-builders/docker
args:
- build
- '--no-cache'
- '-t'
- '$_GCR_HOSTNAME/$PROJECT_ID/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA'
- .
- '-f'
- Dockerfile
id: Build
- name: gcr.io/cloud-builders/docker
args:
- push
- '$_GCR_HOSTNAME/$PROJECT_ID/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA'
id: Push
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk:slim'
args:
- run
- services
- update
- $_SERVICE_NAME
- '--platform=managed'
- '--service-account=tilli-prod-app-run@eastern-moment-343601.iam.gserviceaccount.com'
- '--cpu=1'
- '--memory=1536Mi'
- '--max-instances=1'
- '--min-instances=1'
- '--no-cpu-throttling'
- '--image=$_GCR_HOSTNAME/$PROJECT_ID/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA'
- '--port=8083'
- '--set-secrets=CONNECT_REST_PASSWORD=projects/86606559027/secrets/CONNECT_REST_PASSWORD:latest,CONNECT_REST_USERNAME=projects/86606559027/secrets/CONNECT_REST_USERNAME:latest,KEYSTORE_PASSWORD=projects/86606559027/secrets/KEYSTORE_PASSWORD:latest,TRUSTSTORE_PASSWORD=projects/86606559027/secrets/TRUSTSTORE_PASSWORD:latest'
- >-
--labels=managed-by=gcp-cloud-build-deploy-cloud-run,commit-sha=$COMMIT_SHA,gcb-build-id=$BUILD_ID,gcb-trigger-id=$_TRIGGER_ID,$_LABELS
- '--region=$_DEPLOY_REGION'
- '--quiet'
id: Deploy
entrypoint: gcloud
images:
- '$_GCR_HOSTNAME/$PROJECT_ID/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA'
options:
substitutionOption: ALLOW_LOOSE
substitutions:
_GCR_HOSTNAME: us.gcr.io
_PLATFORM: managed
_SERVICE_NAME: debezium
_LABELS: gcb-trigger-id=a823b872-ccbc-46e8-a064-0cede1910b6c
_TRIGGER_ID: a823b872-ccbc-46e8-a064-0cede1910b6c
_DEPLOY_REGION: us-central1
tags:
- gcp-cloud-build-deploy-cloud-run
- gcp-cloud-build-deploy-cloud-run-managed
- debezium