Questions tagged [cloudbuild.yaml]

122 questions
0
votes
0 answers

How to deploy Apache Beam to Dataflow using google cloud build?

I have a pipeline written in java and its template is deployed on google cloud storage when running the Pipeline. What I want is to generate a Dockerfile and cloudbuild.yaml file then I can deploy using gcloud builds submit I just want the template…
0
votes
0 answers

Create cloud build trigger with user specified service account present in another project

I want to create a cloud build trigger for infra deployment using terraform. And i want to use a user specified "terraform service account" to create and run cloud build trigger (i.e. want to implement the service account impersonation concept in…
0
votes
1 answer

how to specify default cloud run revision url in the cloud build yaml file

I have a GCP project where I continuously deploy changes (PRs) made to a GitHub repository to a cloud-run service using cloud build triggers the way i set it up at first is that i use GCP GUI this results in a trigger in cloud-build\ the…
0
votes
1 answer

Cross project service account impersonation for cloud build

We have a use case where project A has some secrets and databases which cannot be moved to another project. We have a project B that uses the secrets and databases from project A. Project A has a service account X that accesses the secrets and…
0
votes
1 answer

cloud build does not recognize build directory argument

I am trying to build a Cloud Run job with a trigger from Cloud Build and secrets from Secret Manager. I managed to get the trigger that I use to build my Dockerfile to run, but the build itself fails with the following error: BUILD Starting Step #0…
0
votes
1 answer

running commands from cloud-builders-community/sonarqube/

gcloud builds submit . --config=cloudbuild.yaml Creating temporary tarball archive of 6 file(s) totalling 3.2 KiB before compression. Uploading tarball of [.] to…
0
votes
0 answers

Sequelize migrations - Google cloud build trigger

I am currently trying to host a typescript/sequelize project in Google cloud build. I am connecting through a unix socket and cloud sql proxy. The app is deployed and a test running "sequelize.authenticate()" seems to be working. Migrations to…
0
votes
0 answers

YAML configuration to zip file and upload to google storage

I'm pretty new with YAML files and DevOps stuff, sorry if this is a silly question. I have this node project, one folder is just for Cloud Functions (gcp), I'm creating the infrastructure in gcp with Terraform, and gcp for Cloud Functions allows you…
0
votes
1 answer

Can we use the same build steps repeatedly in the cloudbuild yaml file

In the GCP cloud build yaml file, can we use the steps repeatedly by passing the same arguments again but with different file names. Ex: - name: 'gcr.io/cloud-builders/gke-deploy' args: - run - '--filename=kubernetes-job' -…
0
votes
2 answers

How to setup Docker in Docker (DinD) on CloudBuild?

I am trying to run a script (unitest) that uses docker behind the scenes on a CI. The script works as expected on droneci but switching to CloudBuild it is not clear how to setup DinD. For the droneci I basically use the DinD as shown here my…
0
votes
1 answer

How to make App Engine use Cloud Build substitute variables for environmental variables?

I am trying to add Cloud Build on top of my App Engine Flask app. Everything works, but for some reason, I can't access the substitution variables I declared in the trigger. Env vars are still being fetched from app.yaml. And they are parsed…
0
votes
1 answer

How to deploy multiple cloud functions at a time through google cloud build by index.js file like in firebase

I have a situation where I want to deploy my whole index file through cloud build using cloudbuild.yaml file but didn't find any way to do so like in firebase we do like firebase deploy --only function:functionName or fileName (in which all…
0
votes
2 answers

Google Cloud Build/Run trigger upon Pull Request on merge with specific branch

I'm trying to use a Google Cloud Build Trigger to trigger a Cloud Build and then deploy to Cloud Run upon a Pull Request to Github repo Branch. My console looks as follows: My questions: Is it possible to only trigger once the PR is approved or…
0
votes
1 answer

Create GitHub release using CloudBuild

I have everyting automated with CloudBuild and additionally I'd like to create a GitHub release using the CloudBuild. In short, I prepare binary files and then I want to create a GitHub release using those files. I cannot find any working example.…
0
votes
1 answer

Read trigger event info in cloud build

I have created a cloud build with Trigger event push to branch. I have added 2 files in included file filter. So when ever I updated those files my cloud build is triggering fine. But I want to know which file is updated, based on that I need to…
Venkatesh
  • 31
  • 9
1 2 3
8 9