Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

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

private_key_id

&

private_key

 

script:

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

KEY_FILE: $KEY_FILE

PROJECT: 'my-project'

BUCKET: 'my-bucket'

SOURCE: '.'

 

 

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 repohttps://bitbucket.org/atlassian/google-cloud-storage-deploy/src/master/

davidstanton___prebid-header-bidding___Pipelines_—_Bitbucket.png

2 answers

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?

Hi, I get stuck with KEY_FILE variable now. Do u know how to define it ?

@davidstanton @minhkha7911  I'm facing the same issue. how did you fixed?

I already have integrate my KEY_FILE to a repository variable with base64, but when I run, I get the same message as you.

I have this step in my YML:

step:
nameGCP Storage
script: - pipeatlassian/google-cloud-storage-deploy:0.4.5 variables:
KEY_FILE$KEY_FILE
PROJECT'my-project'
BUCKET'my-bucket'
SOURCE'the path with the APK'

(of course I have other configurations on my YML but I copy only the part to GCP STORAGE)

@davidstanton I'm facing the same issue. how did you fixed?

I already have integrate my KEY_FILE to a repository variable with base64, but when I run, I get the same message as you.

I have this step in my YML:

- step:
name: GCP Storage
script: - pipe: atlassian/google-cloud-storage-deploy:0.4.5 variables:
KEY_FILE: $KEY_FILE
PROJECT: 'my-project'
BUCKET: 'my-bucket'
SOURCE: 'the path with the APK'

(of course I have other configurations on my YML but I copy only the part to GCP STORAGE)

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Jira

Admins, notify your Jira instance of system-wide changes with the new admin announcement banner

Hi All! We’re excited to share the launch of an announcement banner that lets Jira site administrators communicate directly to their users across their  Jira Cloud instance.  ...

688 views 17 19
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