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.

The official documentation can be found here: https://cloud.google.com/cloud-build/docs/

1423 questions
-1
votes
1 answer

When deploying a service on Cloud Run, the latest build is not being used

I'm using this command to submit the build: gcloud builds submit --tag gcr.io/[my-project]/[my-service] This successfully submits the build and everything is correct in the Cloud Build tab in the GCP interface. And this command to deploy: gcloud…
-1
votes
1 answer

Getting error 'Cannot find module' on server but local works

I'm creating this error in order to help other developer who could have the same problem. I spent some time on it and the solution is pretty easy. The scenario was: everything was working fine locally and I double checked if the configuration in…
-1
votes
2 answers

How to connect appengine to vpc-connector

I have a django project that I deploy to Cloud Run. It uses two GCP resources - a Postgres database, and a Redis MemoryStore instance for caching. Redis instances can only be connected to with serverless VPC, an extra service with extra costs. So in…
-1
votes
2 answers

How to shutdown a Virtual Machine in GCP after successful execution of code?

I have following A repository which contains a code(python) to be executed A VM at Google Cloud (debian/ubuntu) A scheduler + cloud function to start VM every hour What I require I want to run the code present in repository which will be pulled…
-1
votes
1 answer

web app works locally and on app engine, but not on cloud run

So I've run into this issue with a web app I've made: it gets a file path as input if the file exists on a bucket, it uses a python client api to create a compute engine instance it passes the file path to the instance in the startup script When I…
-1
votes
1 answer

Google cloud or Docker not recognizing folder

I have a project with the following strucure : vineetkalghatgi@vinux:~/personal-projects/bertQA_server$ ls bert-server-env cloudbuild.yaml Dockerfile main.py mymodel Procfile __pycache__ README.md requirements.txt target My…
-1
votes
1 answer

"Please run: npx browserslist@latest --update-db2" when deploying a Google App Engine app using Google Cloud Build

Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db2 After I deployed my Google App Engine app using Google Cloud Build, I got the above error. So I ran the command and got this message. npx: installed 6 in…
-1
votes
1 answer

Google Cloud Build throws errror with NPM

I want to automatically build my nextjs app using Google's Cloud Build. However, the trigger throws an error after pushing to my repository. Error Message: Starting Step #0 Step #0: Already have image (with digest): gcr.io/cloud-builders/npm Step…
-1
votes
2 answers

Integrate sonarqube with cloudbuild

I am trying use sonarqube with cloudbuild but i am getting error "Your project contains .java files, please provide compiled classes with sonar.java.binaries property" my cloubuild.yaml file are below. - id: 'Sonarqube' name:…
-1
votes
1 answer

App engine flexible environnement issues for Python Flask app

I am actually annoyed about App Engine flexible environment deployment. I am using Cloud Build to deploy my code from a GitHub repository but this problem also occurs deploying manually. I would like to create a simple Flask application with a…
-1
votes
1 answer

What causes Google gcloud error message "ERROR: (gcloud) Invalid choice: 'gcloud'" and how to resolve this?

I am trying to deploy a cloud function in GCP using CI-CD process. I have written a yaml file. Below is my code: cloudbuild.yaml # Deploy Cloud Function - name: "gcr.io/cloud-builders/gcloud" id: deploy dir:…
Pritish
  • 658
  • 3
  • 16
  • 38
-1
votes
1 answer

Using two CloudBuild images in one step

I have run into a problem where I need to run both Java+Android and NodeJS in the same CloudBuild "step". My current situation is that I'm trying to build a react-native project within Google CloudBuild. The problem with this is that while bundling…
twiz
  • 9,041
  • 8
  • 52
  • 84
-1
votes
1 answer

How to create MongoDB database using dockerfile and use data in that database for running test cases

I have a Go project which contains a testcase file main_test.go for testing the commands after the project is built and an executable is created. package cmd import ( "testing" "os" "os/exec" ) func TestCommand(t *testing.T) { …
Shady98
  • 21
  • 1
  • 5
-1
votes
1 answer

Why does it take long time for the whole CI-CD process to complete?

I am following a CI-CD process for my node application. I am able to deploy it successfully, but the problem is it is taking a very long time for the whole process. How can I make this CI-CD process faster ? Below is my cloudbuild.yaml file: steps: …
Pritish
  • 658
  • 3
  • 16
  • 38
-2
votes
2 answers

How to implement a CI/CD pipeline for Apache Beam/Dataflow classic templates (Python) & data pipelines

What is the best way to implement a CI/CD build process for Apache Beam/Dataflow classic templates & pipelines in Python? I have only found tutorials for this with Java that include artifact registry + Cloud Build, but rarely any in-depth tutorials…
1 2 3
94
95