Building Images - Cloud Build Quickstart

Code example used in the Cloud Build Quickstart: https://cloud.google.com/build/docs/quickstart-build

Documentation pages that include this code sample

To view the code sample used in context, see the following documentation:

Code sample

YAML

steps:
- name: 'gcr.io/cloud-builders/docker'
  args: [ 'build', '-t', 'us-central1-docker.pkg.dev/$PROJECT_ID/quickstart-docker-repo/quickstart-image:tag1', '.' ]
images:
- 'us-central1-docker.pkg.dev/$PROJECT_ID/quickstart-docker-repo/quickstart-image:tag1'

What's next

To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.