设置 Cloud Build

本页介绍了设置 Cloud Build 的步骤。如需了解 Cloud Build 的费用,请参阅价格

  1. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Go to project selector

  2. Make sure that billing is enabled for your Google Cloud project.

  3. Enable the required API.

    Enable the API

  4. After installing the Google Cloud CLI, initialize it by running the following command:

    gcloud init

    If you're using an external identity provider (IdP), you must first sign in to the gcloud CLI with your federated identity.

  5. 如果您之前已经安装了 gcloud CLI,请确保您拥有最新版本:

     gcloud components update