It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Google Cloud Storage deploy - KEY_FILE variable? Edited

can anyone tell me what is the KEY_FILE variable that has to go in this:


i have a






- pipe: atlassian/google-cloud-storage-deploy:0.4.0 variables:


PROJECT: 'my-project'

BUCKET: 'my-bucket'




tried all sort of thing on this now and nothing gets it working,  i get this output:


i've tried adding a path to the file, no go

i've tried adding a variable, pasting the whole json file into it = no go

i've tried adding a variable, pasting the private_key_id  into it = no go


there must be someone on these borads that knows about this, its a atlassian repo


1 answer

1 accepted

0 votes
Answer accepted

If i remember it correctly, the key_file was the content of that json in base64 encoded.

ok, so i have to take the json file and run it through a base64 encoder? then upload that file to the repo, and point $KEY_FILE to that with a "variable"?

I think u have to copy the bease64 encoded content to a variable. No file

But the Dockerfile is public of that image so you can look it up there.

so what that mean, im a complete dumb A$$ at this?

thanks very much, i think i have it working now properly,  another question would be, is there a way to add google cdn cache invalidation to this, as in if a file changes , it invalidates the cache as well.  not 100% sure yet if google auto invalidates it or not, need to test more

i see one problem here already,  it seems to upload the whole file, not just the files that have changed, where as if i do a "transfer from S3 to google bucket" it only transfers the files which have changed.  that in the long run will save a load of money etc and it auto invalidates the "changed" files, as a new date stamp on them


Is there anyway to only upload 'changed' files?

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

1,041 views 0 3
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you