Reputation: 13923
I'm trying to use this github-action: https://github.com/ameydev/gke-kubectl-action
it needs APPLICATION_CREDENTIALS
from my gcloud account.
the plugin use this here: (https://github.com/ameydev/gke-kubectl-action/blob/master/entrypoint.sh#L16)
echo "$APPLICATION_CREDENTIALS" | base64 -d > /tmp/account.json
I have no idea what it is and how to get it.
Thank you!
Upvotes: 0
Views: 1291
Reputation: 477
I believe it should be GOOGLE_APPLICATION_CREDENTIALS.
echo $GOOGLE_APPLICATION_CREDENTIALS
Upvotes: 0
Reputation: 689
It refers to the service account json file.
Here is a link you can follow:
https://cloud.google.com/docs/authentication/getting-started
You need to assign an appropriate role to a service account and download the key.
Then copy the content of the key and put it against the variable e.g. APPLICATION_CREDENTIALS.
Upvotes: 1