# In this directory, run the following command to build this builder.
# $ gcloud builds submit . --config=cloudbuild.yaml

steps:
- name: 'gcr.io/cloud-builders/docker'
  args: ['build', '-t', 'gcr.io/$PROJECT_ID/opa:${_OPA_VERSION}',
        '-t', 'gcr.io/$PROJECT_ID/opa',
        '--build-arg', 'OPA_VERSION=${_OPA_VERSION}',
        '.']
substitutions:
  _OPA_VERSION: 0.12.2

images:
- 'gcr.io/$PROJECT_ID/opa:latest'
- 'gcr.io/$PROJECT_ID/opa:$_OPA_VERSION'
tags: ['cloud-builders-community']
