cloudbuild.yaml declares the containerized steps that Cloud Build reads and executes for a CI/CD pipeline. Each step selects a cloud builder image and can run tests, build or push images, and deploy workloads. section 12.4.3
A configuration commonly coordinates:
- Unit tests with a language runtime such as python:3.7-slim. section 12.4.3
- Container image builds and registry pushes with the Docker cloud builder. section 12.4.3
- Deployments to GKE, Cloud Run, Cloud Run for Anthos, or Anthos clusters on VMware. section 12.4.3
# cloudbuild.yaml steps: # This step runs the unit tests on the app - name: 'python:3.7-slim' id: Test ... # This step builds the container image. - name: 'gcr.io/cloud-builders/docker' id: Build ... # This step pushes the image to a container registry - name: 'gcr.io/cloud-builders/docker' id: Push ... # This step deploys the new version of our container image - name: 'gcr.io/cloud-builders/kubectl' id: Deploy
Review a compact configuration showing test, build, push, and deployment steps. section 12.4.3
