I'm using google-cloud-storage-deploy pipe v. 0.3.1
pipe: atlassian/google-cloud-storage-deploy:0.3.1
Steps to reproduce is very simple. I'm using it exactly like this documentation sample
script: - pipe: atlassian/google-cloud-storage-deploy:0.3.1 variables: KEY_FILE: $KEY_FILE PROJECT: "my-project" BUCKET: "my-bucket" SOURCE: "."
$KEY_FILE is a string with double quotes and everything else you got from Google Cloud. Like this: {"a":"b", "c":d"}.
This key (actually even exactly this pipeline variable $KEY_FILE) used in other scripts to log into the Google Cloud Container Registry (you need the key with full read-write permissions to Google Cloud Storage to push containers there, then key is 100% good and working good).
Then i immediately go this error
ERROR: (gcloud.auth.activate-service-account) Could not read json file /tmp/key-file.json: No JSON object could be decoded
You need to base64 encode the contents of KEY_FILE and save it as a pipelines variable.
Let me know if this helps,
Davina
This helps. Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.