make sure the local has all the environment variables on cloud function (GCP_KEY)
- create key for service account
buildtrigger
, - base64 encode the private key using javascript
btoa()
functionbtoa("-----BEGIN PRIVATE KEY-----\nMII123456\n-----END PRIVATE KEY------")
- export GCP_KEY=base64keyoutput