CircleCI-Public / gcp-cli-orb

Install and configure the Google Cloud CLI (gcloud)
https://circleci.com/orbs/registry/orb/circleci/gcp-cli
MIT License
10 stars 34 forks source link

3.3.1 initialize gone? #78

Open craiggunson opened 1 year ago

craiggunson commented 1 year ago

Orb version

3.1.1 Braking changes when moving from v2.4.1

The initialise syntax appears to have been replaced with setup? and then it throws this error.

WARNING: You do not appear to have access to project [********************] or it does not exist.
ERROR: (gcloud.config.set) The project property must be set to a valid project ID, not the project name [********************]

I know both the env vars are fine, since they work perfectly in 2.4.1 - and I can confirm it is the project ID.

before - works 2.4.1

      - gcp-cli/initialize:
          gcloud-service-key: GCLOUD_CUSTOM
          google-compute-region: AUSTRALIA_REGION
          google-project-id: GOOGLE_PROJECT_ID

after - failing 3.1.1

      - gcp-cli/setup:
          google_project_id: GOOGLE_PROJECT_ID
          gcloud_service_key: GCLOUD_CUSTOM
          google_compute_region: AUSTRALIA_REGION
Norsu296 commented 1 year ago

@craiggunson check if you don't have white space at the end of project name. I had space and after removing it works.

hannahhenderson commented 1 year ago

@craiggunson has this issue been resolved?

craiggunson commented 9 months ago

nope, same error. I've worked around it with about 4 lines of cli.