ERROR: (gcloud.beta.functions.deploy) … message=[The caller does not have permission]

前端 未结 5 1216
情歌与酒
情歌与酒 2020-12-14 20:45

I am trying to deploy code from this repo:

https://github.com/anishkny/puppeteer-on-cloud-functions

in Google Cloud Build. My cloudbuild.yaml file contents a

5条回答
  •  孤街浪徒
    2020-12-14 21:24

    start your cloud build with auth

    steps:
    - name: 'gcr.io/cloud-builders/gcloud'
      args: ['auth', 'activate-service-account', 'xoxox@xoxo-dev.iam.gserviceaccount.com', '--key-file=account.json', '--project=rabbito-dev']
    

    and then simply your code deployment on cloud function

    - name: 'gcr.io/cloud-builders/gcloud'
      args: ['beta', 'functions', 'deploy', 'screenshot', '--trigger-http', '--runtime', 'nodejs8', '--memory', '1024MB']
    

提交回复
热议问题