Easily install and configure the Google Cloud CLI in your CircleCI jobs.
See this orb's listing in CircleCI's orb registry for details on usage, or see setup notes below:
In order to use this orb, the following environment variables must be available in your CircleCI job (they can be stored as Contexts resources or as project-level environment variables):
GCLOUD_SERVICE_KEY
: environment variable for GCP login
Parameter values:
GOOGLE_PROJECT_ID
GOOGLE_COMPUTE_ZONE
version: 2.1
orbs:
gcp-cli: circleci/[email protected]
workflows:
install_and_configure_cli:
# optionally determine executor to use
executor: default
jobs:
- gcp-cli/install_and_initialize_cli:
context: myContext # store your gCloud service key via Contexts,
# or project-level environment variables
# the below two environment variables may also be stored as environment variables,
# or else manually passed in as string arguments
google-project-id: myGoogleProjectId
google-compute-zone: myGoogleComputeZone