steps:
- name: gcr.io/cloud-builders/docker
  timeout: 900s
  args: [build, ., -t, '${_IMAGE_NAME}', --build-arg, 'BUILDER_IMAGE=${_BUILDER_IMAGE}']
- name: gcr.io/cloud-builders/docker
  args: [push, '${_IMAGE_NAME}']
- name: gcr.io/cloud-builders/gcloud
  args: [run, deploy, alltheplaces, --allow-unauthenticated,
    --platform, managed, --image, '${_IMAGE_NAME}', --memory, 512Mi,
    --region, '${_RUN_REGION}']
- name: ${_FIREBASE_BUILDER_IMAGE}
  args: [deploy, --project, '${PROJECT_ID}', --only=hosting]
images:
- ${_IMAGE_NAME}
timeout: 1800s
substitutions:
  _ARTIFACTS_LOCATION: us-central1
  _ARTIFACTS_REPOSITORY: my-docker-repo
  _RUN_REGION: us-central1
  _IMAGE_NAME: ${_ARTIFACTS_LOCATION}-docker.pkg.dev/${PROJECT_ID}/${_ARTIFACTS_REPOSITORY}/alltheplaces
  _BUILDER_IMAGE: ${_ARTIFACTS_LOCATION}-docker.pkg.dev/${PROJECT_ID}/${_ARTIFACTS_REPOSITORY}/alltheplaces-builder
  _FIREBASE_BUILDER_IMAGE: ${_ARTIFACTS_LOCATION}-docker.pkg.dev/${PROJECT_ID}/${_ARTIFACTS_REPOSITORY}/firebase
options:
  dynamic_substitutions: true
  machineType: E2_HIGHCPU_8
