steps:
- name: 'gcr.io/cloud-builders/docker'
  args: ['build',
        '--build-arg',
         'SHORT_SHA=$SHORT_SHA',
         '--build-arg',
         'checkpoint_sync=${_CHECKPOINT_SYNC}',
         '--build-arg',
         'network=${_NETWORK}',
         '--target',
         'zebrad-release',
         '-t',
         'gcr.io/$PROJECT_ID/zcashfoundation/zebra/$BRANCH_NAME:$SHORT_SHA',
         '-f',
         'docker/Dockerfile.build',
         '.']

images:
- 'gcr.io/$PROJECT_ID/zcashfoundation/zebra/$BRANCH_NAME:$SHORT_SHA'

options:
    machineType: 'N1_HIGHCPU_32'
    substitution_option: 'ALLOW_LOOSE'

timeout: 1800s # 30 mins
