Back to all tools
GCP Cloud Build logo

GCP Cloud Build

Serverless CI/CD that executes your builds on Google Cloud infrastructure.

0Free
CI/CD Cloud Platform
Share:XLinkedInWhatsApp

Overview

GCP Cloud Build is a service that executes your builds on Google Cloud infrastructure.

Key Features

  • Serverless build execution — no build servers to manage
  • Pre-packaged community builders for Docker, Maven, Gradle, npm, and more
  • Trigger builds from GitHub, GitLab, Cloud Source Repositories, or manual
  • Build caching for faster incremental builds
  • Seamless integration with Artifact Registry and Google Cloud Deploy
  • Private pools for builds requiring access to on-premises resources

Real-World Workflows

Containerised application CI/CD on GCP

  1. 1Define a cloudbuild.yaml with steps: test, build Docker image, push to Artifact Registry
  2. 2Connect the repository trigger to fire on every push to main
  3. 3Cloud Build executes the steps in the GCP-managed build environment
  4. 4Signed image is pushed to Artifact Registry
  5. 5Google Cloud Deploy creates a release and deploys to the GKE target cluster

Getting Started

# cloudbuild.yaml:
steps:
  - name: 'gcr.io/cloud-builders/docker'
    args: ['build', '-t', 'gcr.io/$PROJECT_ID/myapp:$SHORT_SHA', '.']
  - name: 'gcr.io/cloud-builders/docker'
    args: ['push', 'gcr.io/$PROJECT_ID/myapp:$SHORT_SHA']

Compare Alternatives

See how GCP Cloud Build stacks up against similar tools.