Skip to content

Instantly share code, notes, and snippets.

@giacchetta
giacchetta / !introduction-to-google-cloud-build.md
Last active June 28, 2024 15:30
Introduction to Google Cloud Build | Giacchetta Consulting

Cloud Build is a service that executes your pipelines on Google Cloud and builds your artifacts such as Docker containers or Java archives, from a simple Dockerfile to a complex cloudbuild.yaml specifications. Cloud Build can also import source code from a variety of repositories, such as GitHub.

Please, replace giacchetta-consulting for your own Google Cloud Project Name

Steps

  1. Copy all files here shown to your local environment.
  2. Execute $ gcloud builds submit --config cloudbuild.yaml .
  3. Check how it runs on https://console.cloud.google.com/cloud-build/builds?project=giacchetta-consulting
  4. Delete source artifacts $ gsutil rm -r gs://giacchetta-consulting_cloudbuild