1,545 questions
1
vote
1
answer
33
views
Go terraform unrecognized import path from GCP Artifact Registry
I get an error when trying to download private go dependencies from artifact registry via terraform:
│ Error: Error waiting to create function: Error waiting for Creating function: Error code 3, ...
0
votes
0
answers
44
views
Cloud Build no longer authenticates gsutil using service account
I have a Dockerfile that builds an image based on golang:bookworm. It installs the google-cloud-cli package from the https://packages.cloud.google.com/apt repository. I used it to build an image that'...
0
votes
2
answers
77
views
Cloud build error in liquibase step to enable spanner API
I have setup a GCP project for build activities that support multiple GCP projects deployments, this way I have one place to manage the CI/CD and in this project no other resources APIs like spanner ...
0
votes
0
answers
70
views
Cloud Build/Artifact Registry Permission Denied Error - cloudbuild.gserviceaccount.com Service Account Missing
Dear Stack Overflow Community,
I am encountering a critical deployment issue with my Google Cloud project gvnalgosoftware (Project ID: 511171631078).
I am attempting to build my Flask application as a ...
0
votes
1
answer
97
views
GCP GKE how to not create pod with selector managed-by cloud-console
I have been manually deploying new pods with GKE for the past three years. Once done, I then configure Cloud Build for my CI/CD to deploy to GKE once the image is created, etc.
For the CD from ...
0
votes
1
answer
68
views
Google Cloud Run keeps giving from metadata despite the metadata being present [Python/Flask]
I have a pyproject.toml file that looks like this:
[build]
builder = "gcr.io/buildpacks/builder:google-22"
[project]
name = "schoolProject"
version = "0.0.1"
authors = [
...
0
votes
0
answers
86
views
Control git init.defaultBranch settings in FETCHSOURCE
How can I set git config --global init.defaultBranch main during the FETCHSOURCE step in google cloud build?
The mission is silencing this redundant message:
hint: Using 'master' as the name for the ...
0
votes
0
answers
100
views
ModuleNotFoundError on GCP Cloud Run
I'm deploying a fastapi app to GCP Cloud Run. Cloud Run builds from a Dockerfile, the app secrets are added to gcr container volumes from Secret Manager.
I get a ModuleNotFoundError with a certain ...
0
votes
0
answers
31
views
create cloud build trigger
Terraform "google_cloudbuild_trigger" resource failing to create trigger
#Resource
Terraform will perform the following actions:
# google_cloudbuild_trigger.cloud_build_trigger will be ...
1
vote
1
answer
214
views
Cloud build keeps using legacy service account despite change in settings
In june 2024, GCP changed the default service account for Cloud Build as explained here https://cloud.google.com/build/docs/cloud-build-service-account-updates#what_do_you_need_to_do
Due to this, new ...
0
votes
1
answer
302
views
Cloud Build fails to use Docker BuildKit Cache
We are using Cloud Build to deploy our Docker container to Cloud Run. We would like to speed up the process with caching, as described here:
https://cloud.google.com/build/docs/optimize-builds/...
0
votes
0
answers
73
views
Cloud Build secretEnv not injecting Vite env vars for Firebase config (auth/invalid-api-key)
I'm struggling with a persistent FirebaseError: Firebase: Error (auth/invalid-api-key) error in my deployed Vite/React frontend application. This error only occurs when the application is built and ...
0
votes
0
answers
127
views
go test takes long time to start running on Google Cloud Build
Context
I have a very simple, bare bones cloudbuild.yaml that:
sets up GOPRIVATE variable so that the CI environment is able to download dependencies
Runs go build
Runs go test:
steps:
- id: "...
0
votes
0
answers
63
views
Cannot see the logs from Firebase Database in Google Cloud Run to send push notification
I am trying to use Firebase logs.
I am able to add new records into my Firebase Realtime Database Chat entity.
The problem is I cannot see any logs or errors when browsing them at Google Cloud Log ...
0
votes
1
answer
83
views
Can I add extra build steps when deploy cloud functions on GCP?
I am using terraform to deploy a python cloud function, similar to the official example, things are working as expected but now I want to use protobuf, which requires extra compile step, I know cloud ...