2020-07-09 11:22:56 -07:00
|
|
|
steps:
|
2020-11-12 12:18:35 -08:00
|
|
|
- name: 'gcr.io/cloud-builders/docker'
|
2020-11-13 19:06:48 -08:00
|
|
|
args: ['build',
|
2020-12-03 19:51:42 -08:00
|
|
|
'--build-arg',
|
|
|
|
'SHORT_SHA=$SHORT_SHA',
|
2020-11-13 19:06:48 -08:00
|
|
|
'--build-arg',
|
|
|
|
'checkpoint_sync=${_CHECKPOINT_SYNC}',
|
|
|
|
'--build-arg',
|
|
|
|
'network=${_NETWORK}',
|
|
|
|
'--target',
|
|
|
|
'zebrad-release',
|
|
|
|
'-t',
|
|
|
|
'gcr.io/$PROJECT_ID/zcashfoundation/zebra/$BRANCH_NAME:$SHORT_SHA',
|
2020-11-19 12:21:03 -08:00
|
|
|
'-f',
|
|
|
|
'docker/Dockerfile.build',
|
2020-11-13 19:06:48 -08:00
|
|
|
'.']
|
2020-07-10 04:37:54 -07:00
|
|
|
|
2020-11-12 12:18:35 -08:00
|
|
|
images:
|
|
|
|
- 'gcr.io/$PROJECT_ID/zcashfoundation/zebra/$BRANCH_NAME:$SHORT_SHA'
|
2020-07-09 11:22:56 -07:00
|
|
|
|
|
|
|
options:
|
|
|
|
machineType: 'N1_HIGHCPU_32'
|
2020-11-13 19:06:48 -08:00
|
|
|
substitution_option: 'ALLOW_LOOSE'
|
2020-07-09 11:22:56 -07:00
|
|
|
|
|
|
|
timeout: 1800s # 30 mins
|