所有 Cloud Build 代码示例

使用集合让一切井井有条 根据您的偏好保存内容并对其进行分类。

This page contains code samples for Cloud Build. To search and filter code samples for other Google Cloud products, see the Google Cloud sample browser.

Basic Configuration

Code example used in "Creating a basic build configuration file" https://cloud.google.com/build/docs/configuring-builds/create-basic-configuration

View in documentation

Building Images - Cloud Build Quickstart

Code example used in the Cloud Build Quickstart: https://cloud.google.com/build/docs/quickstart-build

Client Libraries - Cloud Build Quickstart

Quickstart for using the Cloud Build API

View in documentation

Deploying Images - Cloud Build Quickstart

Code example used in Deploy quickstart https://cloud.google.com/build/docs/quickstart-deploy

Flask app for the python tutorial

https://cloud.google.com/build/docs/building/build-python

Install python dependencies

Using pip install in Cloud Build. https://cloud.google.com/build/docs/building/build-python

View in documentation

List build triggers

List build triggers with the client libraries. To learn more about triggers: https://cloud.google.com/build/docs/automating-builds/create-manage-triggers

Python Development with Cloud Build

To be used with https://cloud.google.com/build/docs/building/build-python

View in documentation

Validating apps against company policies in a CI pipeline

Use with https://cloud.google.com/anthos-config-management/docs/tutorials/app-policy-validation-ci-pipeline