Questions tagged [google-cloud-build]

Cloud Build lets you build software quickly across all languages. Get complete control over defining custom workflows for building, testing, and deploying across multiple environments such as VMs, serverless, Kubernetes, or Firebase. Cloud Build is a service that executes your builds on Google Cloud Platform infrastructure.

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

847 questions
13
votes
2 answers

Using Docker Buildkit on Google Cloud Build

I'm trying to use BuildKit with Docker on Google Cloud Build so that I can eventually use the --secret flag. I'm using Build Enhancements for Docker as a reference. It works on my laptop when I use the following command: DOCKER_BUILDKIT=1 docker…
Mark
  • 131
  • 5
13
votes
3 answers

How can I grant the account permission to list enabled APIs?

During a build on Cloud Build, I get the following warning: Step #2: WARNING: Unable to verify that the Appengine Flexible API is enabled for project [xxxxx]. You may not have permission to list enabled services on this project. If it is not…
jub0bs
  • 46,795
  • 22
  • 148
  • 157
12
votes
2 answers

Google Cloud Build - View logs permissions

I am the owner of a project and want to give Permissions to another user to view Logs of Google Cloud Build, but I can not figure out which Role / Permission this user needs. Roles I've unsuccessfully tried are: Cloud Build Editor, Cloud Build…
Lyubomir
  • 17,533
  • 4
  • 51
  • 65
11
votes
2 answers

Firebase deploy function Build failed: Build error details not available

I have several projects having the same issue. It was deploying fine just a day ago. Now the deployment will quit with an error: Build failed: Build error details not available. The logs from the GCP is shown below (replaced with project-name): { …
Shaun
  • 111
  • 3
11
votes
2 answers

How can I specify a region for the Cloud Storage buckets used by Cloud Build for a Cloud Run deployment?

When deploying a docker container image to Cloud Run, I can choose a region, which is fine. Cloud Run delegates the build to Cloud Build, which apparently creates two buckets to make this happen. The unexpected behavior is that buckets aren't…
11
votes
4 answers

How to access a GCP Cloud Source Repository from another project?

I have project A and project B. I use a GCP Cloud Source Repository on project A as my 'origin' remote. I use Cloud Build with a trigger on changes to the 'develop' branch of the repo to trigger builds. As part of the build I deploy some stuff with…
ci_
  • 7,966
  • 8
  • 35
  • 60
11
votes
3 answers

Multiple commands in the same build step in Google Cloud Builder

I want to run our automated backend test suite on Google Cloud Builder environment. However, naturally, I bumped into the need to install various dependencies and prerequisites within the Cloud Builder so that our final test runner (php tests/run)…
Dzhuneyt
  • 7,039
  • 11
  • 56
  • 108
11
votes
0 answers

How do I get Google Cloud Build to properly substitute values when it responds to a GitHub trigger?

The Problem A GitHub trigger set up in Google Cloud Build doesn't actually substitute the configured values while running the Build (cloudbuild.yaml) This is the Google Cloud Build config cloudbuild.yaml steps: - name:…
10
votes
2 answers

How to prevent cloud build from running builds in parallel?

We are using cloud build for continuous deployment on GCP. When pushing commits to fast (e.g. on development) the triggered builds are running in parallel. Sometimes those interfere which one another. For example when two app engine deployments are…
Carsten Rietz
  • 401
  • 2
  • 10
10
votes
3 answers

How to set environment variables using Google Cloud Build or other method in Google App Engine Standard Environment?

Is there anyway to inject environment variables from Cloud Build into the App Engine Standard environment? I do not want to push my environment variables to GitHub inside the app.yaml or .env. Thus, when Cloud Build pulls and deploys it is missing…
10
votes
1 answer

cloudbuild.yaml include a different cloud builder configuration

My project is split into gitmodules like so: / + | +-module_1 | | | +- cloudbuild.yaml | +- src/ | +-.git/ | +-module_2 | | | +- cloudbuild.yaml | +- src/ | +-.git/ | +- .git/ +- .gitmodules +-…
9
votes
2 answers

understanding "action required" email from GCP, re: enable Cloud Build API

I use Firebase for my web apps, not Google Cloud Platform -- though I'm aware that behind the scenes, every Firebase project is also a GCP project. I just received an email from GCP, saying (excerpted): [Action required]: Enable the Cloud Build…
9
votes
4 answers

Specify Dockerfile for gcloud build submit

I understand gcloud uses the Dockerfile specified in the root directory of the source (.) as in the command: gcloud builds submit --tag gcr.io/[PROJECT_ID]/quickstart-image . but I am trying to specify the Dockerfile to use to build the image which…
idrisadetunmbi
  • 562
  • 5
  • 16
9
votes
1 answer

Is there a way to allow cloudbuild steps to access the Cloud SQL in GCP

I'm setting up a cloud build trigger in order to deploy a PHP/Symfony Application. When the docker file runs the php app/console assetic:dump command in order to create the assets I get the following error. SQLSTATE[HY000] [2002] Connection timed…
8
votes
3 answers

Trigger Google Cloud Build with Google Cloud Scheduler periodically

Is it somehow possible to trigger a Google Cloud Build with Google Cloud Scheduler periodically? I can't find anything related to it on the Internet.
1
2
3
56 57