Hi,
I'm trying to configurate autodeploys with bitbucket pipeline and google cloud.
I have base yaml:
- pipe: atlassian/google-cloud-storage-deploy:1.0.1
variables:
KEY_FILE: $KEY_FILE
PROJECT: 'somexyz'
BUCKET: 'somexyz'
SOURCE: './test'
And I have problem with access ;(
So I have cloud priv key
MIIEvgIBA...
I generated base64 from it base64 -w 0 < file
SUV2Z0lCQURBTkJna3F...
I set on bitbucket secured key KEY_FILE with base64 value and I get
ERROR: (gcloud.auth.activate-service-account) Could not read json file /tmp/key-file.json: Expecting
Any idea why?
I've found the answer :D
Ehh all generated key file should be converted to base64 and passed as secure bitbucket variable XD
Quite strange that when I created json structure only with private keys(key -> value) I didn't get info like no access or missing access data from gcloud but the same error as it was empty XD
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.