forked from metabase/metabase
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
38 lines (33 loc) · 1.12 KB
/
cloudbuild.yaml
File metadata and controls
38 lines (33 loc) · 1.12 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
steps:
# Build the Docker image
- name: 'gcr.io/cloud-builders/docker'
args:
- 'build'
- '--build-arg'
- 'VERSION=v0.54.3'
- '-t'
- 'australia-southeast1-docker.pkg.dev/crowdmcp/crowdit/metabase-crowdit:$COMMIT_SHA'
- '-t'
- 'australia-southeast1-docker.pkg.dev/crowdmcp/crowdit/metabase-crowdit:latest'
- '.'
timeout: '3600s'
# Push both tags
- name: 'gcr.io/cloud-builders/docker'
args: ['push', '--all-tags', 'australia-southeast1-docker.pkg.dev/crowdmcp/crowdit/metabase-crowdit']
# Deploy to Cloud Run
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: gcloud
args:
- 'run'
- 'services'
- 'update'
- 'metabase'
- '--image=australia-southeast1-docker.pkg.dev/crowdmcp/crowdit/metabase-crowdit:$COMMIT_SHA'
- '--region=australia-southeast1'
images:
- 'australia-southeast1-docker.pkg.dev/crowdmcp/crowdit/metabase-crowdit:$COMMIT_SHA'
- 'australia-southeast1-docker.pkg.dev/crowdmcp/crowdit/metabase-crowdit:latest'
options:
logging: CLOUD_LOGGING_ONLY
machineType: 'E2_HIGHCPU_8'
timeout: '7200s'