steps:
  # Docker Build
  - name: 'gcr.io/cloud-builders/docker'
    args:
    - 'build'
    - '-t'
    - '$LOCATION-docker.pkg.dev/$PROJECT_ID/multicluster-orchestrator/argocd-syncer:latest'
    - "--file=./Dockerfile"
    - '.'

  # Docker push to Google Artifact Registry
  - name: 'gcr.io/cloud-builders/docker'
    args:
    - 'push'
    - '$LOCATION-docker.pkg.dev/$PROJECT_ID/multicluster-orchestrator/argocd-syncer:latest'

# Store images in Google Artifact Registry
images:
  - $LOCATION-docker.pkg.dev/$PROJECT_ID/multicluster-orchestrator/argocd-syncer:latest
