設定 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