Questions tagged [cloudbuild.yaml]

122 questions
0
votes
1 answer

Cannot pull golang image in CloudBuild

I've created a simple go server and am following documentation to deploy the server on GCE. But I am getting the following error on my build. What am I missing? I've also tried using a specific version number (i.e. "1.16"), but still fails with a…
0
votes
1 answer

How to run a gradle integration test in google cloud build that uses a mysql image around it?

I have the following step that is being executed. - name: 'gradle:6.8.3-jdk11' entrypoint: 'gradle' args: [ 'integration-test'] The integration test fails because there is no mysql server running within. Locally I execute my integration…
xetra11
  • 7,671
  • 14
  • 84
  • 159
0
votes
1 answer

GKE automating deploy of multiple deployments/services with different images

I'm currently looking at GKE and some of the tutorials on google cloud. I was following this one here https://cloud.google.com/solutions/integrating-microservices-with-pubsub#building_images_for_the_app (source code…
0
votes
2 answers

Access google cloud secret inside cloud build yaml

I am trying to get the secrets from google secret manager. As per documentation to access the secret, the entrypoint should be bash, but I've different entrypoint. Trying to figure out how I can get the secret in my step 'Create dataflow template'.…
0
votes
1 answer

Google cloud build python apache beam data flow yaml file

I am trying to deploy an apache beam Data Flow pipeline built-in python in google cloud build. I don't find any specific details about constructing the cloud build.YAML file. I found a link dataflow-ci-cd-with-cloudbuild, but this seems JAVA…
0
votes
0 answers

Configuration Error while Jenkins-integration with Google-Cloud-build

I am new to Jenkins-integration with Google-Cloud-build and struggling with setup of Jenkins(hosted in instance in gcloud)-jobs for different google-cloud projects using cloudbuild.yaml. I am using simple (also tried many ways) inline-yaml but…
Amar
  • 21
  • 1
  • 2
0
votes
1 answer

How to implement CI/CD using Google cloud build for multiple Google cloud functions in one source repository?

We are using a mono repository(GCP source repository) which consist of one folder for each cloud function(Cloud function's source code). What we are planning to do is implement a CI/CD pipeline using Cloud build but I would like to know if there is…
0
votes
1 answer

"gcloud builds submit" is not triggering error for missing required substitutions

I need some help with cloud build --substitutions. This is the doc: https://cloud.google.com/cloud-build/docs/build-config#substitutions Here is what is says: cloudbuild.yaml substitutions: _SUB_VALUE: world options: substitution_option:…
cbdeveloper
  • 27,898
  • 37
  • 155
  • 336
0
votes
3 answers

Cloud build not working for different environment angular

Below command, I am trying to run with cloud build trigger but it still picks up the enviroment.ts file cloudbuild.yaml - name: gcr.io/cloud-builders/npm args: [ run, build, --configuration=Staging ] Below is the Package.json script code …
Ishika Jain
  • 949
  • 2
  • 11
  • 23
0
votes
2 answers

URL not found appears when try to deploy with cloud build (gcp)

Application - Angular I am trying to automate the deployment process for my angular app in GCP. When I deploy manually from the cloud shell things works fine but when I try to build-deploy with cloudbuild.yaml, cloud build, triggers it says deployed…
0
votes
1 answer

How to deploy a function on GCP with Cloud Build?

I have created a Cloud Function called pupetter-e2e with a trigger on changes to a bucket storage, called homepage. I want to deploy updates to the function with the following cloudbuild.yaml: steps: - name: 'gcr.io/cloud-builders/gcloud' args: …
0
votes
1 answer

Do I need to add substituions values that I'll provide via CLI to the cloudbuild.yaml file?

In my cloudbuild.yaml file, I'm relying on a value that will be passed through the builds submit --substitutions=_SERVER_ENV=TEST command. This is how I'm referencing it: cloudbuild.yaml steps: - name: "gcr.io/cloud-builders/docker" args: [ …
cbdeveloper
  • 27,898
  • 37
  • 155
  • 336
-1
votes
2 answers

is there any way to run npm install and npm run build in a cloudbuild.yaml?

I have this react app, I need to deploy into a google cloud storage thru google cloud build, I'm trying to do it adding a cloudbuild.yaml and add some steps to run the npm This is what I have: steps: - name: bash script: | npm install…
Elmer A. Chacon
  • 75
  • 3
  • 11
-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…
-2
votes
1 answer

Converting gcloud command to CloudBuild.yaml for GCP Log Sink

I have created GCP Log Sinks using gcloud command and it works. I now want to move that code into a CloudBuild.Yaml file equivalent. Can someone please point me to the log sink cloud build yaml template please or if you can convert the below command…
1 2 3
8
9