google-cloud-build

Google Cloud Build - Cant Update Submodules

若如初见. 提交于 2021-02-11 15:27:28
问题 I configured google cloud build (GCB) to trigger a build on one of my repositories in Github. This repository requires another git repository in order to be built. This other repository is configured using a git submodule. I search and at the moment it looks like GCB do not support submodules. So I am trying to run git submodule update --init manually on the source code that GCB downloaded, but there is not .git directory on it and the command fails. What am I missing here? I am using this

Google cloud build permission error while deploying rasa to App engine

五迷三道 提交于 2021-02-11 14:55:12
问题 I am trying to deploy a rasa project described like here to google app engine, But the build failed due to some permission issues The scripts try to create a folder inside container, FROM rasa/rasa ENV BOT_ENV=production COPY . /var/www WORKDIR /var/www RUN rasa train ENTRYPOINT [ "rasa", "run", "-p", "8080"] I have added following permissions to google cloud build. Error log frome cloud build. Epochs: 100%|██████████| 100/100 [00:16<00:00, 6.04it/s, t_loss=1.485, i_loss=0.104, i_acc=1.000]

GCP kms encrypt env var and passing encrypted key through cloudbuild.yaml to google app engine

我们两清 提交于 2021-02-11 14:46:23
问题 I'm trying to encrypt env vars for database in Cloud SQL in my RoR app deploying to Google App Engine. Following this doc https://cloud.google.com/cloud-build/docs/securing-builds/use-encrypted-secrets-credentials However, I have an error when running both gcloud builds submit and gcloud app deploy . Both are error out with: Failure status: UNKNOWN: Error Response: [4] DEADLINE_EXCEEDED / build step 0 "gcr.io/cloud-builders/gcloud" failed: exit status 1. I then check the gcloud builds

Facing error while deploying node.js app on google cloud

懵懂的女人 提交于 2021-02-11 14:14:23
问题 I am trying to deploy node.js app on google cloud but getting following error. I am facing this error since 10th October. don't know how to resolve: Step #2: ERROR: (gcloud.beta.app.deploy) PERMISSION_DENIED: You do not have permission to act as '[xxxxxxx]@appspot.gserviceaccount.com' Step #2: - '@type': type.googleapis.com/google.rpc.ResourceInfo Step #2: description: You do not have permission to act as this service account. Step #2: resourceName: [xxxxxx]@appspot.gserviceaccount.com Step

Facing error while deploying node.js app on google cloud

时光毁灭记忆、已成空白 提交于 2021-02-11 14:08:44
问题 I am trying to deploy node.js app on google cloud but getting following error. I am facing this error since 10th October. don't know how to resolve: Step #2: ERROR: (gcloud.beta.app.deploy) PERMISSION_DENIED: You do not have permission to act as '[xxxxxxx]@appspot.gserviceaccount.com' Step #2: - '@type': type.googleapis.com/google.rpc.ResourceInfo Step #2: description: You do not have permission to act as this service account. Step #2: resourceName: [xxxxxx]@appspot.gserviceaccount.com Step

Google Cloud Build & Firebase Deploy - “An unexpected error has occurred”

北战南征 提交于 2021-02-11 05:54:59
问题 I'm using Google Cloud Build to do a deployment to Firebase Hosting when a commit is on master. I'm using the Firebase Cloud Builder, deployed to my project. I've checked permissions in the Cloud Console and Firebase access is enabled. Everything seems to go well in generating the static HTML for hosting, but at the final build step it fails suddenly with this problem: Error: An unexpected error has occurred. Here is the step in my cloudbuild.yaml that fails: - name: gcr.io/$PROJECT_ID

Google Cloud Build & Firebase Deploy - “An unexpected error has occurred”

孤街浪徒 提交于 2021-02-11 05:54:34
问题 I'm using Google Cloud Build to do a deployment to Firebase Hosting when a commit is on master. I'm using the Firebase Cloud Builder, deployed to my project. I've checked permissions in the Cloud Console and Firebase access is enabled. Everything seems to go well in generating the static HTML for hosting, but at the final build step it fails suddenly with this problem: Error: An unexpected error has occurred. Here is the step in my cloudbuild.yaml that fails: - name: gcr.io/$PROJECT_ID

Google Cloud Build & Firebase Deploy - “An unexpected error has occurred”

◇◆丶佛笑我妖孽 提交于 2021-02-11 05:54:20
问题 I'm using Google Cloud Build to do a deployment to Firebase Hosting when a commit is on master. I'm using the Firebase Cloud Builder, deployed to my project. I've checked permissions in the Cloud Console and Firebase access is enabled. Everything seems to go well in generating the static HTML for hosting, but at the final build step it fails suddenly with this problem: Error: An unexpected error has occurred. Here is the step in my cloudbuild.yaml that fails: - name: gcr.io/$PROJECT_ID

Where is set global limit for gcloud steps timeout for all builds?

一世执手 提交于 2021-02-10 23:10:35
问题 Where can I find global limit for gcloud build step timeout? This is my gcloud build config: steps: - name: 'gcr.io/cloud-builders/yarn' - name: 'gcr.io/cloud-builders/yarn' args: ['build-nginx-config'] - name: 'gcr.io/cloud-builders/yarn' args: ['build'] timeout: 3601s ... timeout: 7200s And this is what I get when I try to run this build: [10:41:45]ERROR: (gcloud.builds.submit) INVALID_ARGUMENT: invalid build: invalid timeout in build step #2: build step timeout "1h0m1s" must be <= build

Where is set global limit for gcloud steps timeout for all builds?

泪湿孤枕 提交于 2021-02-10 23:08:14
问题 Where can I find global limit for gcloud build step timeout? This is my gcloud build config: steps: - name: 'gcr.io/cloud-builders/yarn' - name: 'gcr.io/cloud-builders/yarn' args: ['build-nginx-config'] - name: 'gcr.io/cloud-builders/yarn' args: ['build'] timeout: 3601s ... timeout: 7200s And this is what I get when I try to run this build: [10:41:45]ERROR: (gcloud.builds.submit) INVALID_ARGUMENT: invalid build: invalid timeout in build step #2: build step timeout "1h0m1s" must be <= build