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

update gcloud commands to --decode base64 #2862

Closed
mvansoens opened this issue Oct 30, 2018 · 0 comments · Fixed by #2896
Closed

update gcloud commands to --decode base64 #2862

mvansoens opened this issue Oct 30, 2018 · 0 comments · Fixed by #2896
Assignees
Labels
undocumented missing information

Comments

@mvansoens
Copy link

For the article https://circleci.com/docs/2.0/google-auth/, the following block should be updated:

From:

echo $GCLOUD_SERVICE_KEY | sudo gcloud auth activate-service-account --key-file=-
sudo gcloud --quiet config set project ${GOOGLE_PROJECT_ID}
sudo gcloud --quiet config set compute/zone ${GOOGLE_COMPUTE_ZONE}
to:

echo $GCLOUD_SERVICE_KEY | base64 --decode | sudo gcloud auth activate-service-account --key-file=-
sudo gcloud --quiet config set project ${GOOGLE_PROJECT_ID}
sudo gcloud --quiet config set compute/zone ${GOOGLE_COMPUTE_ZONE}

without --decoding the base64 encoded json file, an error is thrown because of --key-file= inconsistent format.

michelle-luna added a commit that referenced this issue Nov 8, 2018
@michelle-luna michelle-luna self-assigned this Nov 8, 2018
@michelle-luna michelle-luna added the undocumented missing information label Nov 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
undocumented missing information
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants