google-cloud-build

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

雨燕双飞 提交于 2019-11-29 04:13:27
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 are: steps: - name: 'gcr.io/cloud-builders/gcloud' args: ['beta', 'functions', 'deploy', 'screenshot', '--trigger-http', '--runtime', 'nodejs8', '--memory', '1024MB'] I have given the following roles to my Cloud Build Service account (****@cloudbuild.gserviceaccount.com): Cloud Build Service Account Cloud Functions Developer Yet, in my Cloud Build log I see the following error: starting build "1f04522c-fe60-4a25-a4a8-d70e496e2821"

How to pass environment variables to the app.yaml using cloud build

拥有回忆 提交于 2019-11-28 06:59:31
问题 The final step of my CI/CD is the deployment using gcloud app deploy, but I can't commit the app.yaml with my environment variables, so how to deploy using cloud build passing the env variables do the app.yaml? Here is my cloudbuild.yaml steps: - name: "gcr.io/cloud-builders/gcloud" args: ["app", "deploy"] timeout: "1800s" 回答1: One easy option is to have your environment variables listed in a file (or even the app.yaml file itself) in Cloud Storage. You can then use the cloud-builders/gsutil

Google cloud built not substituting environment variable for firebase token

為{幸葍}努か 提交于 2019-11-28 02:23:57
I have a cloud build trigger that attempts to push my application to firebase hosting. To do that I have an encrypted .env.enc file that contains the firebase token needed to deploy. During my build I decrypt this file and attempt to deploy but am met with an unauthorised message. I tried hard coding the token in my deployment script instead of using the environment variable and it deploys fine. Here is my cloudbuild.yaml steps: - name: gcr.io/cloud-builders/gcloud args: - kms - decrypt - --ciphertext-file=.env.enc - --plaintext-file=.env - --location=global - --keyring=ssr-vue-docker-app - -

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

五迷三道 提交于 2019-11-27 16:23:23
问题 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 are: steps: - name: 'gcr.io/cloud-builders/gcloud' args: ['beta', 'functions', 'deploy', 'screenshot', '--trigger-http', '--runtime', 'nodejs8', '--memory', '1024MB'] I have given the following roles to my Cloud Build Service account (****@cloudbuild.gserviceaccount.com): Cloud Build Service Account Cloud Functions Developer Yet, in my

Google cloud built not substituting environment variable for firebase token

狂风中的少年 提交于 2019-11-27 04:56:04
问题 I have a cloud build trigger that attempts to push my application to firebase hosting. To do that I have an encrypted .env.enc file that contains the firebase token needed to deploy. During my build I decrypt this file and attempt to deploy but am met with an unauthorised message. I tried hard coding the token in my deployment script instead of using the environment variable and it deploys fine. Here is my cloudbuild.yaml steps: - name: gcr.io/cloud-builders/gcloud args: - kms - decrypt - -