Questions tagged [google-cloud-build]

For programming/API questions about Google Cloud Build, a service that executes builds, regardless of language, on the Google Cloud Platform infrastructure.

Filter by
Sorted by
Tagged with
0 votes
1 answer
40 views

Google Cloud Build failed to create shim task: OCI runtime create failed

I am experience issue in cloud build. I am trying to deploy test terraform resource in google cloud. Below is Error Snapshot I am facing , Below is build steps i am using, substitutions: ...
Hardik Patel's user avatar
0 votes
0 answers
19 views

Cloud Build YAML Configuration: Issues with Environment Variables from .env File Not Being Set in Application

I'm facing an issue with my Cloud Build configuration YAML file, which is not working as expected. I have a multi-step build process, and I'm encountering problems with environment variable handling ...
Muthukumar M's user avatar
0 votes
1 answer
42 views

google cloud build executing `kubectl get` cannot recognize output format json

In cloud build logs "Running the following command: kubectl [get httproutes.gateway.networking.k8s.io --field-selector=metadata.name=test-name-http-route --output=json | jq -r '.spec.rules[]?....
GigiWithoutHadid's user avatar
0 votes
0 answers
23 views

GCP Cloud Build NextJS Cache

I have a GCP Cloud Run application that is deployed with a Cloud Build that is triggered when a github repo. has changes pushed to main. The way these changes are made are by merging a PR. Cloud Build ...
cphill's user avatar
  • 5,666
0 votes
0 answers
22 views

Tips for deploying Go REST API on GCP Cloud Functions? Handling dependencies and project structure challenges. Appreciate insights

I want to deploy my rest api on gcp cloud functions. My folder structure is - Root Folder │ ├── cmd │ └── main.go │ ├── models │ └── models.go │ ├── validations │ └── validations.go │ ├── ...
Shreyas Awankar's user avatar
0 votes
1 answer
103 views

How to fix APPLICATION_ERROR;google.iam.credentials.v1/CloudGaia.GenerateAccessToken;Account disabled: xxxxxxxx?

I am getting the following error when deploying a service to Flexible app engine. This issue happened out of the blue and I have no clue what this CloudGaia. We checked the Flexbile App engine API and ...
Essa A. Haddad's user avatar
-1 votes
2 answers
107 views

Using Docker heredoc with Google Cloud

It's been a while since Docker introduced the ability to use heredoc in the RUN command, and I use it quite often. However, when I tried to use it with Cloud Run, it seems that this feature is not ...
Rodrigo's user avatar
  • 48
0 votes
0 answers
10 views

Failed to trigger build: Couldn't read commit while using the bitbucket self-hosted-server

Hello I am having bitbucket self hosted on the premises and i want to deploy the code to the firebase hosting using the cloud builds. I successfully connected to the host and fetched the repostiories ...
Punit Kumar Tewani's user avatar
0 votes
1 answer
37 views

Tags column not set in build history

I have just started to using Google Cloud Build for one of my projects. One thing that bugs me is that I cannot get data into the tags column in the build history, the only data there is some auto ...
andreas's user avatar
  • 75
0 votes
2 answers
61 views

Google Cloud Build failed, fork/exec ./gradlew: permission denied

I was trying to deploy a test Spring Boot project to Google Cloud Run referring to this Quickstart guide by Google: https://cloud.google.com/run/docs/quickstarts/build-and-deploy/deploy-java-service I ...
James Koh's user avatar
0 votes
0 answers
36 views

Running database migrations in Cloud Build with Cloud SQL Proxy

I have a Dockerfile in which I've defined database migration process: ... ARG DATABASE_URL ENV DATABASE_URL RUN npx prisma migrate deploy --schema ./prisma/schema.prisma ... This is my Cloud Build ...
mdmb's user avatar
  • 4,925
0 votes
1 answer
38 views

Automatically redeploy a GCP cloud function based on git tag

I have a GCP function, I used to managed it via Terraform cloud and the git SHA. Changing it each time, plan and apply. I hoped that changing to tag_name from commit_sha would cause the gcp function ...
SJRL's user avatar
  • 11
0 votes
0 answers
15 views

GKE and Private Workers Pool on Google Cloud

I been trying to follow the doc https://cloud.google.com/architecture/accessing-private-gke-clusters-with-cloud-build-private-pools but I can't already, I create all the components like vpc's, ...
Juan Manuel Garcia's user avatar
0 votes
0 answers
28 views

Google cloud service failed to trigger build found no logs

I'm trying to learn API service deployment on Google Cloud service for the first time. First, backgrounds to the problem I am facing. I have been following this particular tutorial posted on medium ...
natelynate's user avatar
0 votes
1 answer
116 views

Where did my cloudbuild.yaml come from? And why does it error with a Dockerfile?

I am trying to configure cloud run to deploy continuously from Github. My repo uses a Dockerfile. This worked fine in one project, we will call project A, now I am trying to recreate this in another ...
Halo's user avatar
  • 1
0 votes
0 answers
37 views

Install kubernetes manifest on an attached cluster using Cloud Build

In GKE, I have an attached cluster which resides on prem and has kubernetes installed on it using kubeadm. Now using GCP Cloud Build, I would like to install a k8s app onto it. I have the kubeconfig ...
Jason Stanley's user avatar
0 votes
0 answers
12 views

Build Fails When Done Through Cloud Build Pipeline But works if run through CMD

Cloud Build Pipeline (GCP) fails when pandas and big-Query is Used.But Works OK when done through CMD gcloud run deploy. It says Pyarrow Build failed.And also struck at following. Building wheel for ...
Muhammad Abubakar Shehzada's user avatar
0 votes
1 answer
54 views

NextJS Not Recognizing Docker Built Env Variables from Secrets Manager

I am having trouble running a GCP Cloud Build for my Docker Image using a NextJS app. Since my application is using API keys, I am using GCP Secret Manager to load my environment variables at build ...
cphill's user avatar
  • 5,666
0 votes
1 answer
110 views

Unable to pull images from Artifact Registry when deploying to Cloud Run

Introduction I am using Cloud Build for learning how to build Docker images, storing them in Artifact Registry and then deploying the final product to Cloud Run. Please see the cloudbuild.yaml below: ...
Jonalcaide's user avatar
0 votes
1 answer
43 views

Is it possible to use Cloud Storage as your source in a Cloud Build trigger?

I've seen in these docs that show that you can submit a Cloud Build with a Cloud Storage source with the gcloud builds submit command. Is there a way that I can create a Cloud Build trigger that has a ...
Brian K's user avatar
  • 592
0 votes
1 answer
39 views

How to send a message to a Google Pub/Sub topic upon Cloud Build failures?

I'd like to set up my Cloud Build pipeline to send a message to a specific topic in Google Pub/Sub upon build failure. Is there an easy way to do this with Cloud Build? Sort of like a "finally&...
Brian K's user avatar
  • 592
0 votes
1 answer
128 views

Google cloud build extract data from maven and use them in multiple steps

My cloud build needs to do the following build maven build docker images using the maven plugin Retag the docker images with naming appropriate for pushing to GC artifact registry push those images ...
Dimitris's user avatar
  • 570
1 vote
2 answers
483 views

Cloudbuild failing on flask app due to incopatibility of functions-framework and Flask

I'm trying to build my code using CloudBuild, but it's failing with the following message: Error: Error while updating cloudfunction configuration: Error waiting for Updating CloudFunctions Function: ...
Aleksa Tešić's user avatar
0 votes
1 answer
99 views

Google cloud build - cache and optimize build time

I'm using google cloud build and a new build is triggered each time a new commit is pushed to my branch. Everything is working fine (artifacts and cloud run machine) but I'm trying to speed up the ...
crivella's user avatar
  • 566
0 votes
1 answer
87 views

Variable name substitution undefined in cloud build gcp

Hi all I have an issue which I am unable to proceed. According to the user guide, it mentioned that $REPO_NAME is supposed to be substitute to the repository name checked out. An example the ...
isme's user avatar
  • 190
0 votes
0 answers
79 views

Unable to connect from GCP Cloud Build to GitLab Self-managed

Unfortunately I'm unable to connect to GitLab Self-managed from Cloud Build on a private IP address as described in this guide: https://cloud.google.com/build/docs/automating-builds/gitlab/connect-...
amazze's user avatar
  • 1
0 votes
1 answer
143 views

Cloud Build -> Cloud Deploy -> Cloud Run?

I am trying to build a release-from-main pipeline using Google's "serverless" offerings, where when something gets merged into main on GitHub, it triggers a Cloud Build (which builds, ...
samkass's user avatar
  • 5,815
5 votes
4 answers
804 views

GCloud Build Failure: ERROR: failed to initialize analyzer, No such object

My most recent builds with GCloud all started failing recently and I am not really sure why. I keep getting 404 errors from the build attempting to find an image that doesn't exist. Sample error: ...
Jasper Madrone's user avatar
0 votes
1 answer
64 views

Revision '<SERVICE_NAME>-00037-hep' does not exist or is deleted. Update all traffic to route to currently available revisions

I was creating a past revision in Cloud Run and received the following error message. Error Message Revision '<SERVICE_NAME>-00037-hep' does not exist or is deleted. Update all traffic to route ...
Coichiro Aso's user avatar
1 vote
1 answer
50 views

Google Cloud Build Doesn't Work Properly on Git Hooks

Im using gcloud and I have a git server on a vm, where in a repository through a git hook (post-receive), Im calling cloud build to triggers the construction of a docker image and the deployment of ...
YosefMac's user avatar
  • 150
0 votes
1 answer
83 views

COPY failed: file not found in build context or excluded by .dockerignore: stat requirements.txt: file does not exist ERROR

I am able to build my docker image and run it locally. But when I am trying to deploy same docker image on cloud run its getting failed during code build and giving below error. Step 9/11 : COPY ...
iamabhaykmr's user avatar
  • 1,861
0 votes
1 answer
152 views

Github action wait for cloud build to complete

I trigger cloud build from github action (GHA) using gcloud command - name: Start CB trigger run: | export CLOUDSDK_CORE_DISABLE_PROMPTS=1 gcloud beta builds triggers run ...
Aseem's user avatar
  • 6,014
0 votes
1 answer
177 views

CloudBuild Trigger with service account using Terraform

I try to create a CloudBuild Trigger running as a service account and not the standard Cloud Build service account. My terraform code is running using service account impersonation with the following ...
Sydney's user avatar
  • 12k
0 votes
1 answer
111 views

Google cloud build trigger on push to event of github

I am new to Cloud build and trying to understand how and what a cloud build trigger on Github does. I have written a simple cloudbuild.yaml file expecting cloud build would display all the local ...
Ajay Sakalabhaktula's user avatar
0 votes
1 answer
101 views

Why is my Rust webserver failing to build on Google Cloud Build?

I am trying to build my web server, written in Rust, on Google Cloud Run. When I build the image locally on an Apple M1, it works: $ docker build -t foo . ... Successfully built cf1125710221 ...
Chris's user avatar
  • 1,525
0 votes
1 answer
147 views

GCP Cloud Build link repository doesn't lists all Github repositories

I created a Github connection in the GCP Cloud Build there are 3 repositories in my Github a/c but the Link Repository option shows only 1. I'm not able to figure out why it doesn't list all the 3 ...
dips's user avatar
  • 33
0 votes
1 answer
162 views

Access Github repository through GCP Cloud Build

I'm trying to connect private Github repository to GCP Cloud Build and following the below documentation https://cloud.google.com/build/docs/access-github-from-build While trying to submit the build ...
dips's user avatar
  • 33
0 votes
0 answers
38 views

ERROR: (gcloud.app.deploy) Error Response: [7] failed to fetch metadata: generic::permission_denied

Which role should I grant my cloud build service account to resolve this error : ERROR: (gcloud.app.deploy) Error Response: [7] failed to fetch metadata: generic::permission_denied I get this error ...
Aseem's user avatar
  • 6,014
0 votes
1 answer
132 views

GCP Cloudbuild Push new Tag trigger doesn't start on git tag created in gitlab repository

As the title suggest, I setup a gcp cloud build trigger on "push new tag" event. The repository exist in gitlab and host connection is properly established. However on creating a new tag in ...
Neeraj Kumar's user avatar
0 votes
0 answers
99 views

Cloud build android - Manifest not found error

I am using Google Cloud to build a simple Android Project. I have been using the docker image and following the instructions from the repo: Cloud Build Android As per the instructions mentioned in the ...
viv's user avatar
  • 6,178
0 votes
0 answers
25 views

Cloud Build Github Pull Request Trigger does not fire on Pull Request Closed event

I am trying to setup a build trigger that would instanciate a mock server for the client i build to run integration testing. When a PR is openned, a mock server should be instanciated in App Engine, ...
Gael Motte's user avatar
-1 votes
1 answer
75 views

Using Google Cloud Build and Pub/Sub triggers to clone and run a repository

Is it possible for me to use a Google Cloud Build trigger that triggers upon Google Pub/Sub events to pull down a repository and build the code for it? Or is this only possible through Cloud Build ...
Brian K's user avatar
  • 592
0 votes
0 answers
300 views

Testing Google Cloud Build cloudbuild.yaml locally?

I want to use google cloud build, to build, test and deploy my Java Application, however, I am new to Cloud Build and I see it is run using steps scripts, How can I run (test) locally the script ...
Adelin's user avatar
  • 18.3k
0 votes
0 answers
154 views

Python Google Cloud Function fails build with non-zero status: 51

Similar to this nodejs issue: Google Cloud Functions deploy failed with status code 51 , I am seeing the same exact issue in my python cloud functions. This is quite random, and I have been able to ...
Cole Gulledge's user avatar
0 votes
1 answer
201 views

GCP Cloud Build - Running Bash script with arguments

I have a GCP Cloub build configuration, where a bash script is needed to be executed. The below configuration works just fine. steps: - name: 'gcr.io/cloud-builders/gcloud' entrypoint: 'bash' ...
user1502505's user avatar
0 votes
0 answers
32 views

Cloud Build to pick up new GitHub Repositories

I want to use Cloud Build in the following way: A user creates a new repo in my GitHub organization. Cloud Build picks up that the new repository was created, and starts a pipeline. The Cloud Build ...
Brian K's user avatar
  • 592
0 votes
0 answers
44 views

Permissions; Cloud Run continuous deployment from Code Source Repositories

I am having a hard time finding good documentation about this but I am looking to enable continuous integration between my web application running in Cloud Run, and my code replicated from Gitlab to ...
Ronny Cardona's user avatar
0 votes
1 answer
289 views

running npx prisma migrate inside cloud build using cloud sql and cloud Run (MySql)

I have a remix run application and am using a cloud sql database with a public IP and Prisma as an ORM. I'm also using Cloud Run to host my application and cloud build for the build process. The ...
James Daly's user avatar
  • 1,367
0 votes
1 answer
127 views

Where will Google Cloud Build save docker image

I know that Google Cloud Build will persist /workspace across build steps. (As stated here) But I cannot understand why these 2 build steps can persist docker image in 2 different steps (from here). ...
thang's user avatar
  • 323
0 votes
1 answer
30 views

Facing issue with CI CD pipeline using Google Compute Engine & Github

I am getting this error: ERROR: build step 0 "gcr.io/cloud-builders/gcloud" failed: step exited with non-zero status: 1 ERROR ERROR: (gcloud.compute.ssh) Could not SSH into the instance. It ...
Keval Karia's user avatar

1
2 3 4 5
29