Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add parameter skip_install to gcp-cli/setup #66

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions src/commands/setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ parameters:
If left to "latest", the latest version will be installed.
Otherwise, provide the full version number as it appears in the URL on this page: https://cloud.google.com/sdk/docs/downloads-versioned-archives

skip_install:
type: boolean
default: false
description: Set to true, if want to install step

components:
type: string
default: ""
Expand Down Expand Up @@ -85,9 +90,13 @@ parameters:
description: Output location of OIDC credentials.

steps:
- install:
version: << parameters.version >>
components: << parameters.components >>
- when:
condition:
not: << parameters.skip_install >>
steps:
- install:
version: << parameters.version >>
components: << parameters.components >>
- run:
name: Initialize gcloud CLI to connect to Google Cloud
environment:
Expand Down