-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
35 lines (34 loc) · 872 Bytes
/
cloudbuild.yaml
File metadata and controls
35 lines (34 loc) · 872 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
26
27
28
29
30
31
32
33
34
35
steps:
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: 'bash'
args:
- '-c'
- |
gsutil cp gs://findup/$_ENV_PATH ./.env
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: 'gcloud'
args:
- 'functions'
- 'deploy'
- '$_FUNCTIONS_NAME'
- '--entry-point'
- 'main'
- '--source'
- '.'
- '--trigger-event-filters'
- 'bucket=$_BUCKET'
- '--trigger-event-filters'
- 'type=google.cloud.storage.object.v1.finalized'
- '--gen2'
- '--serve-all-traffic-latest-revision'
- '--memory'
- '1024MiB'
- '--region'
- 'asia-southeast2'
- '--env-vars-file'
- './.env'
- '--service-account'
- '$_SERVICE_ACCOUNT'
logsBucket: 'gs://findup-logs/cloud-build/$_CONTEXT/logs'
options:
logging: GCS_ONLY