forked from dolphin-emu/dolphin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcloudbuild.yaml
More file actions
36 lines (30 loc) · 1011 Bytes
/
cloudbuild.yaml
File metadata and controls
36 lines (30 loc) · 1011 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
steps:
# Build the base image
- name: 'gcr.io/cloud-builders/docker'
args: [
'build',
'-t', 'gcr.io/$PROJECT_ID/emubench-dolphin-base:${_TAG}',
'-t', 'gcr.io/$PROJECT_ID/emubench-dolphin-base:latest',
'-f', './deploy/base/Dockerfile',
'.'
]
timeout: '3600s' # 1 hour timeout for the build
# Push the tagged image
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/emubench-dolphin-base:${_TAG}']
# Push the latest tag
- name: 'gcr.io/cloud-builders/docker'
args: ['push', 'gcr.io/$PROJECT_ID/emubench-dolphin-base:latest']
# Use a more powerful machine for the build
options:
machineType: 'E2_HIGHCPU_8' # 8 vCPU, 8GB RAM
diskSizeGb: 100
# Specify longer timeout for the entire build
timeout: '7200s' # 2 hours
# Images to push to registry
images:
- 'gcr.io/$PROJECT_ID/emubench-dolphin-base:${_TAG}'
- 'gcr.io/$PROJECT_ID/emubench-dolphin-base:latest'
# Default substitutions
substitutions:
_TAG: 'latest'