docs-v2/content/en/docs/builders/build-environments/cloud-build.md
Skaffold supports building remotely with Google Cloud Build.
Cloud Build is a Google Cloud Platform service that executes your builds using Google infrastructure. To get started with Cloud Build, see Cloud Build Quickstart.
Skaffold automatically connects to Cloud Build and runs your builds with it. After Cloud Build finishes building your artifacts, they are saved to the specified remote registry, such as Google Container Registry.
Skaffold's Cloud Build process differs from the gcloud command
gcloud builds submit.
Skaffold does the following:
cloudbuild.yamlSkaffold does not honor .gitignore or .gcloudignore exclusions. If you need to ignore files, use .dockerignore.
Any cloudbuild.yaml found will not be used in the build process.
To use Cloud Build, add build type googleCloudBuild to the build
section of skaffold.yaml.
build:
googleCloudBuild: {}
The following options can optionally be configured:
{{< schema root="GoogleCloudBuild" >}}
By default, Cloud Build (invoked by Skaffold) builds all artifacts in parallel. Set concurrency to a non-zero
value to specify the maximum number of artifacts to build concurrently. Consider reducing concurrency if you
hit a quota restriction.
{{<alert title="Note">}} When Skaffold builds artifacts in parallel, it still prints the build logs in sequence to make them easier to read. {{</alert>}}
Skaffold currently supports the following [builder types]({{<relref "/docs/builders/builder-types">}}) when building remotely with Cloud Build: