Questions tagged [cloudbuild.yaml]
122 questions
0
votes
1 answer
GCP Cloud Build - Running Bash script with arguments
I have a GCP Cloub build configuration, where a bash script is needed to be executed.
The below configuration works just fine.
steps:
- name: 'gcr.io/cloud-builders/gcloud'
entrypoint: 'bash'
args: ['./my_script.sh']
But, I want to be…

user1502505
- 724
- 1
- 8
- 11
0
votes
0 answers
How to set environment variables using cloudbuild.yaml for react project
The build is working but environment variables are not assigned during the build, How can I access environment variables?
My cloudbuild.yaml file(Substitution variables are added in the trigger configuration)
steps:
# Step 1: Build and submit to…

Muthukumar M
- 1
- 1
0
votes
0 answers
Docker in docker configure HTTP_PROXY for build (on cloud build)
I'm struggling to find a solution for the above problem using cloud build yaml.
I need to use a corporate proxy during build phase. If I understand cloud build correctly, the step is pulling an image from internal repository and using it to run…
0
votes
1 answer
Execute a Big query in cloud buils step with multiple source files
I have my cloud build file like below.
steps:
name: gcr.io/cloud-builders/gcloud
args:
config
set
project
'${_PROJECT_ID}'
name:…

Bajjuri sushmitha
- 11
- 1
0
votes
0 answers
Troubleshooting 'did not find expected key' error in cloudbuild.yaml for Google Cloud Run
I try to use cloudbuild with yaml file and the command in the file is look like this
steps:
options:
logging: CLOUD_LOGGING_ONLY
# Build container image
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', 'gcr.io/$PROJECT_ID/backend',…

Jadid Al Ghazi
- 1
- 1
0
votes
0 answers
Cloud Build Python : 403 Missing or insufficient permissions
I create the python file to save the data to firestore and code cloud build to write CICD.
I can run python file in local successfully. But, it failed in cloud build.
It shows error
403 Missing or insufficient permissions.
cloudbuild.yaml
-…

P.pp
- 9
- 2
0
votes
0 answers
How to correctly for CLI args when deploying from GCP Cloud Deply via cloudbuild.yaml
I have a docker file
FROM golang:1.20-alpine
WORKDIR /app
COPY . .
RUN go build quivrApi/cmd/quivr
EXPOSE $PORT
ENTRYPOINT ["./quivr"]
and my cloudbuild.yaml
steps:
# Build the container image
- name: 'gcr.io/cloud-builders/docker'
…

Z. Fralish
- 438
- 4
- 9
0
votes
1 answer
error in Cloud Build (GCP) - javac: invalid target release: 11
I have a maven project which runs normally on my local computer, but when I push the code to the cloud repository, it fails in Cloud Build with the error below:
Step #0: [ERROR] COMPILATION ERROR :
Step #0: [INFO]…

Gunel
- 3
- 1
0
votes
0 answers
How can I override Github Actions or Cloud Build `skip ci`?
So i have a catch 22 with CI currently.
I need to [skip ci] on cloud build on a certain merge to main because that build will eventually be triggered by tags created by a github action. However, github actions also listens to [skip ci] and doesn't…

Greg McKelvey
- 229
- 1
- 8
0
votes
0 answers
I need a cloudbuild builder with both gcloud and yarn available
I have an NX monorepo and would like to deploy only those apps which had a change since the last commit.
My cloudbuild.yaml looks like this:
steps:
- name: node:16-bullseye
entrypoint: yarn
args: ["install", "--frozen-lockfile"]
- name:…

sev
- 1,500
- 17
- 45
0
votes
0 answers
Running hadolint (Dockerfile linter) with Google Cloud Build
I'm working on image factory hosted on GCP and one of the pipeline I'm working on should build docker images from Dockerfile that is pushed to Cloud Source Repository.
As a step 0 in my cloud build pipeline I'd like to use hadolint to check the…

Alex Miroshnyk
- 5
- 1
0
votes
1 answer
How to deploy frontend app to Cloud App Engine using cloudbuild
I am trying to deploy a React app to Google Cloud App Engine. Whenever code is pushed to GitHub, Cloud Build creates a production build folder and pushes it into a GCS bucket. I also have an app.yaml file in the same GCS bucket that I use for…

Shadow Walker
- 979
- 5
- 27
- 51
0
votes
0 answers
How to use BRANCH_NAME with cloudbuild.yaml and Dockerfile in Google Cloud Build
I have been using Dockerfile and cloudbuild.yaml to build images succesfully,
But now I need to have the BRANCH_NAME value inside the Dockerfile, and since this requirement showed up, my docker builds have started failing.
Here below is my…

london_utku
- 1,070
- 2
- 16
- 36
0
votes
1 answer
Google Managed VM Instance group does not get latest image when created/replaced
I have a cloud build trigger for a branch to build a docker image and to replace vm instances from a group with latest image, I know that before some time when we did a push to github, it replaced vm instances with new ones and the code was updated…

Besart101
- 51
- 2
0
votes
1 answer
Cloudbuild unable to decrypt using key 404
I am attempting to set up a simple Rails application using GCP Cloudbuild, and am running into a error message that indicates a failure to decrypt a variable due to the kms key not being found.
Currently, when running the build gcloud builds submit…

Anon
- 33
- 4