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
43
votes
6 answers

Cloud Build fails to deploy to Google App Engine - You do not have permission to act as @appspot.gserviceaccount.com

This morning I made a PR which triggered a Cloud Build for my staging enviroment but failed to deploy the results to GAE. The error was as follows: ERROR: (gcloud.app.deploy) PERMISSION_DENIED: You do not have permission to act as…
33
votes
6 answers

Can I delete container images from Google Cloud Storage artifacts bucket?

I have a Google App Engine app, which connects to Google Cloud Storage. I noticed that the amount of data stored was unreasonably high (4.01 GB, when it should be 100MB or so). So, I looked at how much each bucket was storing, and I found that…
30
votes
1 answer

Is it possible to cache multi-stage docker builds?

I recently switched to multi-stage docker builds, and it doesn't appear that there's any caching on intermediate builds. I'm not sure if this is a docker limitation, something which just isn't available or whether I'm doing something wrong. I am…
23
votes
2 answers

Google Cloud Build timing out

I have a Google Cloud Build build that times out after 10 min, 3 sec. Is there a way to extend that timeout? The build status is set to "Build failed (timeout)" and I'm okay with it taking longer than 10 minutes.
munchybunch
  • 5,474
  • 9
  • 44
  • 62
21
votes
4 answers

Google Cloud Build deploy to GKE Private Cluster

I'm running a Google Kubernetes Engine with the "private-cluster" option. I've also defined "authorized Master Network" to be able to remotely access the environment - this works just fine. Now I want to setup some kind of CI/CD pipeline using…
21
votes
3 answers

GitHub Cloud Build Integration with multiple cloudbuild.yamls in monorepo

GitHub's Google Cloud Build integration does not detect a cloudbuild.yaml or Dockerfile if it is not in the root of the repository. When using a monorepo that contains multiple cloudbuild.yamls, how can GitHub's Google Cloud Build integration be…
sabrehagen
  • 1,225
  • 11
  • 33
20
votes
2 answers

Deploy individual services from a monorepo using github actions

I have around 10 individual micro-services which are mostly cloud functions for various data processing jobs, which all live in a single github repository. The goal is to trigger the selective deployment of these service to Google Cloud Functions,…
19
votes
6 answers

How do I set an environment or substitution variable via a step in Google Cloud Build?

Basically, when using Google Cloud Build, how do I read a value that was written in an earlier build step in subsequent steps? Specifically, I'd like to make a custom image tag that's based on a combination of the timestamp and $SHORT_SHA. …
JJC
  • 7,445
  • 6
  • 39
  • 51
16
votes
4 answers

gcloud - ERROR: (gcloud.app.deploy) Permissions error fetching application

I am trying to deploy node js app on google cloud but getting following error - Step #1: ERROR: (gcloud.app.deploy) Permissions error fetching application [apps /mytest-240512]. Please make sure you are using the correct project ID and that you have…
16
votes
5 answers

ERROR: (gcloud.beta.functions.deploy) ... message=[The caller does not have permission]

I am trying to deploy code from this repo: https://github.com/anishkny/puppeteer-on-cloud-functions in Google Cloud Build. My cloudbuild.yaml file contents are: steps: - name: 'gcr.io/cloud-builders/gcloud' args: ['beta', 'functions', 'deploy',…
anishkny
  • 340
  • 1
  • 2
  • 6
14
votes
7 answers

GCP Cloud Function - ERROR fetching storage source during build/deploy

Running into problems building deploying functions. When trying to programmatically deploy the function I get the following output in builder logs (ERRORS). 2020-10-20T02:22:12.155866856Z starting build "1fc13f51-28b6-4052-9a79-d5d0bef9ed5c" I…
14
votes
5 answers

Run node.js database migrations on Google Cloud SQL during Google Cloud Build

I would like to run database migrations written in node.js during the Cloud Build process. Currently, the database migration command is being executed but it seems that the Cloud Build process does not have access to connect to Cloud SQL via an IP…
14
votes
2 answers

How can I save google cloud build step text output to file

I'm trying to use google cloud build. At one step, I need to get a list of all running compute instances. - name: gcr.io/cloud-builders/gcloud args: ['compute', 'instances', 'list'] and it works fine. Problem starts when I tried to save the…
Mahmoud Samy
  • 2,674
  • 7
  • 30
  • 68
14
votes
3 answers

Communicate between two containers in Google cloud build

I am running my CI/CD pipeline in Google cloud build. My app has web and wget containers. I am trying to reach web from wget Cloud build internally used cloudbuild bridge network while starting containers as steps. So I am expecting these steps to…
manikantanr
  • 506
  • 3
  • 10
13
votes
1 answer

Failed to get existing workspaces: querying Cloud Storage failed: storage: bucket doesn't exist

was using terraform in cloud build, but it fails at this step steps: # Terraform - id: 'configure_terraform' name: node:10.16.3 entrypoint: "node" args: ["./create_terraform_config.js", …
Elona Mishmika
  • 373
  • 3
  • 17
1
2 3
56 57