-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
37 lines (31 loc) · 931 Bytes
/
cloudbuild.yaml
File metadata and controls
37 lines (31 loc) · 931 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
36
37
steps:
- name: 'gcr.io/cloud-builders/docker'
args: [
'build',
'-t', 'gcr.io/$PROJECT_ID/emubench-agent:latest',
'-f', 'Dockerfile',
'.'
]
timeout: '3600s' # 1 hour timeout for the build
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/emubench-agent:latest']
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: gcloud
args:
- 'run'
- 'services'
- 'update'
- 'emubench-agent'
- '--image'
- 'gcr.io/$PROJECT_ID/emubench-agent'
- '--region'
- 'us-central1'
# Specify the service account for Cloud Build
serviceAccount: 'projects/$PROJECT_ID/serviceAccounts/emubench-cloud-build-sa@$PROJECT_ID.iam.gserviceaccount.com'
options:
machineType: 'E2_HIGHCPU_8'
diskSizeGb: 100
logging: CLOUD_LOGGING_ONLY
timeout: '7200s' # 2 hours
images:
- 'gcr.io/$PROJECT_ID/emubench-agent:latest'