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
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:
$ base64 -w 0 < my_ssh_key
Mac OS X
$ base64 < my_ssh_key
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?
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