Skip to content

mmoscher/gcp-cli-orb

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GCP CLI Orb

Easily install and configure the Google Cloud CLI in your CircleCI jobs.

Usage

See this orb's listing in CircleCI's orb registry for details on usage, or see setup notes below:

Setup

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

Example

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

About

Install and configure the Google Cloud CLI (gcloud)

Resources

Stars

Watchers

Forks

Packages

No packages published