1,531
questions
65
votes
6
answers
15k
views
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 ...
63
votes
7
answers
27k
views
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 ...
57
votes
3
answers
31k
views
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 ...
54
votes
5
answers
42k
views
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 ...
49
votes
2
answers
27k
views
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 ...
28
votes
9
answers
9k
views
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 ...
27
votes
6
answers
23k
views
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 ...
27
votes
7
answers
46k
views
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, ...
27
votes
6
answers
16k
views
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 ...
25
votes
8
answers
30k
views
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 ...
25
votes
3
answers
9k
views
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 ...
24
votes
4
answers
47k
views
Failed to get existing workspaces: querying Cloud Storage failed: storage: bucket doesn't exist
I 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: ["./...
23
votes
3
answers
9k
views
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 ...
22
votes
6
answers
11k
views
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 ...
21
votes
3
answers
22k
views
Error publishing source code from cloud build to a bucket using triggers
I´m trying to publish the html code from one cloud source repository to a public storage bucket in gcp through a cloud build trigger . However , I get the following error in the build each time I push ...