You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
I'm trying to setup the pipeline to automatically deploy a nodejs application to Google App Engine. I've set the GCP_KEY_FILE_DEV variable in the repository > Deployment > Environment "Development". The variable contains a base64 encoding of the service account file needed to authenticate. But, I keep getting the same error. See screenshot. Any ideas? Thanks.
@Jens Henrik Hosbond hi.Thanks for your question.
Looks like the problem relates to base64 encoding.
Try to test your encoded variable to check access to Google Cloud App Engine in console.
Examples of how to encode:
Linux
1
$ base64 -w 0 < my_ssh_key
Mac OS X
1
$ base64 < my_ssh_key
Hi Igor
Thank you for your reply. I've tested and validated the base64 encoding. But, it still produces the same error. I've re-checked the permissions on the service account key file and that should be ok.
Any other ideas?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So, for tests you sent request from your console with your base64 encoded file and without using pipe and you received ok response?
Or you received an error even when trying to connect to Google Cloud App Engine from your console?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Seems i misunderstood you. I thought problem related to pipe.
Did you use this pipe: https://bitbucket.org/atlassian/google-app-engine-deploy/src/master/ ?
If not maybe you should try?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
And for your case i think you should do something like this in your pipeline:
echo $GCP_KEY_FILE_DEV | base64 -d > ~/.client-secret.json
gcloud auth activate-service-account --key-file ~/.client-secret.json
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.