Questions tagged [cloudbuild.yaml]
122 questions
1
vote
1 answer
How to build and push Go image using Google Ko?Could you tell me the steps for cloudbuild.yaml to create the image and push go image using Google ko?
I need to build go project using google Ko after checking out from git and then push the image to private artifactory which takes credentials. How to define the steps for the above in cloudbuild.yaml? Steps where it takes Source path and also where…

Sneha
- 233
- 2
- 13
1
vote
1 answer
Use custom variable and in steps in Cloudbuild GCP
I am trying to use custom variable in cloudbuild.yaml that variables describes git version of release. How could I use this variable in steps and bind my docker tag with this release.
steps:
- name: 'gcr.io/cloud-builders/git'
args: […

Sankalp
- 1,300
- 5
- 28
- 52
1
vote
1 answer
Google cloud build with pack and secrets manager not accessing environment variables
I'm using a standard gcr.io/k8s-skaffold/pack build function to build my app for google cloud run using google cloud build.
In my cloudbuild.yaml I load 2 secrets from google secrets manager and pass it to the build function. The google cloud build…

Laokoon
- 1,241
- 4
- 24
- 47
1
vote
0 answers
Is there a way to cherry pick Cloud Build runs with Github Comments?
I have set up my cloud build instances to only trigger when a comment of /gcbrun is made to the pull request.
I would like to be able to trigger specific, or all builds.
Currently using /gcbrun is triggering all of my builds when I would like to…

Rafael Zasas
- 891
- 8
- 27
1
vote
0 answers
I need Google Cloud Build "finaly step"
The problem: Some steps create entities in K8b that must eventually be removed regardless of the success of any other steps in the build.
Here is an example of cloudbuild.yaml
steps:
# TEST NAMESPACE
#
# some previous steps...
# package…

Oleksiienko Serhii
- 11
- 2
1
vote
2 answers
Error with Spring Boot app in Google Cloud Build - Creates working version but reports failed build
I have a Java Spring Boot app that was previously building well, and we are now having issues.
We are using GCP, and the cloud build feature to trigger builds automatically when we push to certain branches in GCP. The goal is for the app to build…

Mark Amber
- 23
- 3
1
vote
0 answers
Accessing Github repo from Google Cloud Build
I have Cloud Build Trigger that runs on a push to a given branch of my GitHub repo.
In my cloudbuild.yaml file I am trying to access one of my private GitHub repos. That doesn’t work. Here's the step that fails:
steps:
...
- name:…

Gilbert Nwaiwu
- 687
- 2
- 13
- 37
1
vote
2 answers
Changing directories in Cloud Build 'cd' no found
I'm using cloud build to clone a repository. I can confirm the repository clones successfully to the cloud build /workspace volume.
steps:
- id: 'Clone repository'
name: 'gcr.io/cloud-builders/git'
args: ['clone', $_REPO_URL]
volumes:
…

Ari
- 5,301
- 8
- 46
- 120
1
vote
1 answer
Getting error when trying to execute cloud build to deploy application to cloud run
I tried to deploy application to cloud run in GCP which succesfuly got executed using docker file.Now,I am setting up CI/CD by using cloudbuild.yaml .I mirrored repo to CSR and created a cloudbuild service and placed cloudbuild.yaml in my repository…

lakshmi
- 201
- 2
- 13
1
vote
1 answer
Deployment to AppEngine fails on Cloud Build -- But not locally
As of this morning all of my build pipelines have started to fail. No code in many of the pipelines have changed, and none of the cloudbuild.yaml files have changed.
I've got a few NodeJS applications that have a CloudBuild.yaml file that looks…

Crash
- 11
- 3
1
vote
0 answers
Cloud build error - pull access denied for python3
I have set a trigger on Github repo using GCP cloud build.
I get error Error response from daemon: pull access denied for python3, repository does not exist or may require 'docker login': denied: requested access to the resource is denied when…

Aseem
- 5,848
- 7
- 45
- 69
1
vote
1 answer
Specifying a different 'Executed Function' than 'Name' in GCP cloudbuild.yaml
How do I specify a different "Executed Function" in my cloudbuild.yaml file than the name of the actual function name in GCP?
For example:
I have a cloud function, written in python called hello_world
In my GCP deployment, I want to name the…

Phillip Geltman
- 195
- 1
- 13
1
vote
1 answer
How do I access a git tag in a google cloud build?
I have a Cloud Source Repository where I maintain the code of my python package. I have set up two triggers:
A trigger that runs on every commit on every branch (this one installs my python package and tests the code.
A trigger that runs on a…

Steven
- 13
- 5
1
vote
0 answers
How to read pom version in cloudbuild
I have cloudbuild.yaml file which is deploying java application. Right now i am passing commit id as my docker image tag. But i want to pass pom version in my docker build. There is a way to read pom file in jenkins with…

Abhinav
- 71
- 1
- 9
1
vote
2 answers
GCP cloudbuild git push trigger
I have a trigger to run a build job everytime there's a push to a specific branch of my repository.
If I try to run the build job "manually" (without the trigger) with the command:
# Submit the build job
_cmd = f"gcloud builds submit --no-source…

Amorim95
- 51
- 4