Questions tagged [google-cloud-build]
For programming/API questions about Google Cloud Build, a service that executes builds, regardless of language, on the Google Cloud Platform infrastructure.
google-cloud-build
1,513
questions
1
vote
0
answers
8
views
GCP Cloud Functions Deployment Failing with ArtifactRegistry Error
Getting a really strange error when I try to deploy my cloud function in a particular project. I run
gcloud config set project <project>
gcloud functions deploy my_cf --entry-point ...
0
votes
1
answer
24
views
How To Set A GCloud Flag During Cloud Build Runtime?
I need to set a Gcloud deployment flag with an environment variable that I set during runtime. The reason for this is that I am trying to version my cloud run services and if the parameter TAG_NAME ...
0
votes
0
answers
70
views
How to fix gcloud builds submit ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1
I'm trying to submit a new container to gcloud, but when I run:
!gcloud builds submit --tag europe-west2-docker.pkg.dev/[company]-website/[company]-containers/[company]-room
(where you read [company] ...
0
votes
0
answers
20
views
Cloud Build Variables are not getting imported into my React Application
Bare with me as I'm new to a lot of these concepts and my terminology may not be correct.
I have a React application that I have running in a Google App Engine. I've set up a Cloud Build to ...
0
votes
1
answer
91
views
I'm having a hard time setting up Substitution Variables for Google Cloud Build. I keep getting an invalid value for 'build.substitutions' error
I'm relatively new to Google Cloud from a developer standpoint. I have setup a basic website and configured Google Cloud Build to run any time I push a change to GitHub. This was working well until I ...
0
votes
1
answer
56
views
Cloud Build can't find config file in public GitHub repo
I am trying to build the Terraform cloud builder. Following the example in the gcloud builds submit doc, I run:
gcloud builds submit https://github.com/GoogleCloudPlatform/cloud-builders-community \
...
2
votes
0
answers
48
views
Firebase App Hosting not downloading Git submodules
We have an Angular 18 app that uses Git submodules:
.gitmodules file:
[submodule "projects/shared-lib/src/whatever-lib"]
path = projects/shared-lib/src/whatever-lib
url = https://...
0
votes
2
answers
92
views
Install Artifact Registry Python package from Dockerfile with Cloud Build
I have a python package located in my Artifact Registry repository.
My Dataflow Flex Template is packaged within a Docker image with the following command:
gcloud builds submit --tag $CONTAINER_IMAGE ....
0
votes
1
answer
33
views
Cleaning up staging buckets for a GCP dataflow run via flex template
I am creating GCP dataflow jobs via flex template, using Cloud Build to generate templates etc.
This results in brand new buckets being created every single time. eg i have a dataflow-staging-us-...
0
votes
0
answers
47
views
Cannot transfer files from Cloud Build to Compute Engine with SCP via internal IP
I'm currently using Cloud Build to build HTML and JavaScript codes when they're pushed to a specific repository on GitHub.
After build process is completed, files and folders are transferred to a ...
0
votes
0
answers
73
views
GCP Cloud Build failed 401 Unauthorized even when Artifact Registry Administrator is granted
I'm trying to use GCP Cloud Build to automate my deployment, but I'm getting 401 error when it tries to pull dependency from Artifact Registry:
Could not GET 'https://europe-west1-maven.pkg.dev/myapp-...
1
vote
1
answer
92
views
Google cloud build trigger with terraform gives Error creating Trigger: googleapi: Error 400: Request contains an invalid argument
I have a gen2 connection setup successfully, the only resource that I am unable to create is the trigger and I have searched all logs for. more informative description than this "error: Error ...
-1
votes
0
answers
36
views
How to use custom logo and name on allure single-file report on mac
I am running my tests with pytest on google cloud build. I'm on macos and I'm generating reports using allure. The default report after running the tests looks like this: .
What I want to do: I want ...
0
votes
0
answers
46
views
Error when using service account json key file from secrets manager in dbt cloud build pipeline step
I'm running a cloud build pipeline to deploy my dbt data pipelines project. In one of the steps I'm trying to execute dbt compile which tests a connection to BigQuery. I get the error: dbt was unable ...
1
vote
0
answers
18
views
Google cloud build and nodejs mysql connect
I'm having hard time to figure how to configure a database connection on cloudbuild.yaml file.
cloudbuild.yaml:
steps:
- name: 'gcr.io/cloud-builders/docker'
automapSubstitutions: true
env:
...