Cloud Build is GCP's managed CI/CD service. You chain Docker-based Steps together to build any pipeline you need for build, test, and deploy. It integrates deeply with the rest of GCP — secure auth via Workload Identity and in-VPC builds via Private Pool are its standout features.
steps: # 1. テスト - name: 'node:20' entrypoint: 'npm' args: ['test'] # 2. Docker ビルド - name: 'gcr.io/cloud-builders/docker' args: ['build', '-t', 'asia-northeast1-docker.pkg.dev/$PROJECT_ID/myrepo/app:$SHORT_SHA', '.'] # 3. Artifact Registry に push - name: 'gcr.io/cloud-builders/docker' args: ['push', 'asia-northeast1-docker.pkg.dev/$PROJECT_ID/myrepo/app:$SHORT_SHA'] # 4. Cloud Run にデプロイ - name: 'gcr.io/google.com/cloudsdktool/cloud-sdk' entrypoint: 'gcloud' args: - 'run' - 'deploy' - 'my-app' - '--image=asia-northeast1-docker.pkg.dev/$PROJECT_ID/myrepo/app:$SHORT_SHA' - '--region=asia-northeast1' options: machineType: 'E2_HIGHCPU_8' logging: CLOUD_LOGGING_ONLY timeout: '1200s'
| Aspect | Default Pool | Private Pool |
|---|---|---|
| VPC access | No | Yes |
| VPC SC | Outside perimeter | Inside perimeter |
| Pricing | Build minutes x Worker class | VM time |
| Primary use case | Public builds | Private DBs and on-prem connections |
| Worker Class | Price ($/min) |
|---|---|
| e2-standard-2 (default) | $0.003 |
| e2-highcpu-8 | $0.016 |
| e2-highcpu-32 | $0.064 |
| Free tier | 120 build-minutes / month |
| Aspect | Cloud Build | GitHub Actions | AWS CodeBuild | Azure DevOps |
|---|---|---|---|---|
| GCP integration | ◎ | Good (WIF) | — | — |
| Free tier | 120 min/mo | 2000 min/mo | 100 min/mo | 1800 min/mo |
| Self-hosted | Private Pool | Self-hosted Runner | — | Self-hosted Agent |
| Multi-cloud | △ | ◎ | Limited (AWS) | ◎ |
Cloud Build or GitHub Actions — which should I use?
Pick Cloud Build for GCP-centric workloads (deep Workload Identity integration), and GitHub Actions for multi-cloud or OSS ecosystems. Using both is also common — Actions for PR validation, Cloud Build for deployment.
How do you write a build configuration?
Define Steps as YAML in cloudbuild.yaml. Each Step runs as a Docker container and they all share a common workspace.
What is a Private Pool?
A dedicated Worker Pool inside your VPC. It's required for builds that need to reach private resources such as Cloud SQL Private IP, on-prem databases, or anything inside a VPC SC perimeter.
How does Cloud Build relate to Cloud Deploy?
Cloud Build handles build, test, and containerization. Cloud Deploy manages Canary and Blue-Green rollouts. The standard flow is Cloud Build triggering Cloud Deploy.
What is the pricing model?
Billed as build minutes multiplied by the Worker class (e2-standard-2 = $0.003/min). 120 build-minutes per month are free. Private Pool is billed separately based on VM time.
What kinds of triggers are available?
GitHub, GitLab, Bitbucket, Cloud Source Repositories, Pub/Sub, and Webhook. You can filter by tag, branch, PR, comment, and more.
What are Build Approvals?
A feature (added in 2023) that places an approval gate inside the pipeline. A lightweight alternative to Cloud Deploy for human approval before production rollout.
How does Cloud Build compare with AWS CodeBuild and Azure DevOps Pipelines?
CodeBuild excels at AWS integration, Azure DevOps couples OSS pipelines with Boards integration, and Cloud Build leads on GCP integration with native Buildpacks support.
Related Articles & CI/CD
GitHub Actions + GCP CI/CD 完全ガイド|Workload Identity・Cloud Run/GKE デプロイ (2026)
GitHub Actions で GCP CI/CD を構築する完全ガイド。Workload Identity Federation、setup-gcloud、Cloud Run / GKE デプロイ、Cloud Build 連携、Reusable Workflow、Self-hosted Runner、Secrets 管理を 2026 年最新版で網羅。
GCP Professional Cloud DevOps Engineer (PCDOE) 完全ガイド|SRE・GKE・CI/CD・SLO
Google Cloud Professional Cloud DevOps Engineer の試験範囲、SRE / SLI / SLO / Error Budget、GKE / Cloud Build / Cloud Deploy、AWS DOP・Azure AZ-400 比較を徹底解説。
GCP Professional Cloud Developer (PCD) 完全ガイド|Cloud Run・GKE・CI/CD・APM
Google Cloud Professional Cloud Developer の試験範囲、Cloud Run / GKE / Cloud Build / Cloud Trace、AWS DVA / Azure AZ-204 比較、学習ロードマップを徹底解説。
Terraform on GCP 完全ガイド|IaC・Provider・Workload Identity・GitHub Actions (2026)
Google Cloud で Terraform を使う IaC 完全ガイド。Google Cloud Provider / Beta、State 管理 (gcs バックエンド)、Workload Identity Federation、Module 設計、GitHub Actions CI、Infracost、Config Connector を 2026 年最新版で網羅。
* Google Cloud is a trademark of Google LLC. For the latest information, check the official Cloud Build documentation.
Practice with certification-focused question sets
View GCP exam prep pageNicheeLab Editorial Team
NicheeLab editorial team focused on data engineering and cloud certification learning. Content is structured around practical study needs and official exam domains.
Google Cloud Certification Roadmap (2026)
Choose your GCP certification path — Foundational, Associate...
CDL Cloud Digital Leader: Complete Exam Guide (2026)
Pass the Cloud Digital Leader exam — cloud business value, G...
GAIL Generative AI Leader: Complete Exam Guide (2026)
Pass the Generative AI Leader exam — Gemini, Vertex AI, Work...
Vertex AI Fundamentals for GCP Certs (2026)
Vertex AI basics every cert candidate needs — Workbench, Pip...
Associate Cloud Engineer (ACE): Complete Guide (2026)
Pass the Associate Cloud Engineer exam — Console, gcloud, pr...