steps:
  - name: 'gcr.io/cloud-builders/docker'
    entrypoint: 'bash'
    args: ['-c', 'docker pull gcr.io/fldemo-315215/car-zone-35035-dev:latest || exit 0']
  - name: 'gcr.io/cloud-builders/docker'
    args: [
        'build',
        '-t', 'gcr.io/fldemo-315215/car-zone-35035-dev:latest',
        '--file', 'Dockerfile.dev',
        '--cache-from', 'gcr.io/fldemo-315215/car-zone-35035-dev:latest',
        '.'
    ]
images: ['gcr.io/fldemo-315215/car-zone-35035-dev:latest']
logsBucket: 'gs://fldemo-315215-cloudbuild-logs'