197 questions
0
votes
1
answer
3k
views
How can I deploy Google Cloud Functions in CI/CD without re-deploying unchanged Cloud Functions to avoid the quota? [closed]
Cloud Build has a create quota of 30. If we have more than 30 Cloud Functions, this quota can easily be reached. Is there a way to deploy more than 30 Cloud Functions that people use, that preferably ...
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 ...
66
votes
6
answers
16k
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 ...
0
votes
1
answer
2k
views
Google cloud built not substituting environment variable for firebase token
I have a cloud build trigger that attempts to push my application to firebase hosting. To do that I have an encrypted .env.enc file that contains the firebase token needed to deploy. During my build I ...
3
votes
1
answer
3k
views
How to pass environment variables to the app.yaml using cloud build
The final step of my CI/CD is the deployment using gcloud app deploy, but I can't commit the app.yaml with my environment variables, so how to deploy using cloud build passing the env variables do the ...
29
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 ...
21
votes
2
answers
21k
views
Google Cloud build conditional step
I have the following cloudbuild.yaml file:
substitutions:
_CLOUDSDK_COMPUTE_ZONE: us-central1-a
_CLOUDSDK_CONTAINER_CLUSTER: $_CLOUDSDK_CONTAINER_CLUSTER
steps:
- name: gcr.io/$PROJECT_ID/...
19
votes
2
answers
8k
views
How can I specify a region for the Cloud Storage buckets used by Cloud Build for a Cloud Run deployment?
When deploying a docker container image to Cloud Run, I can choose a region, which is fine. Cloud Run delegates the build to Cloud Build, which apparently creates two buckets to make this happen. ...
4
votes
1
answer
5k
views
How to specify secretEnv to cloudbuild.yaml via gcloud cli args or environment variables
If I follow the cloud build document, I have to specify encrypted secret on cloudbuild.yaml.
secrets:
- kmsKeyName: projects/[PROJECT-ID]/locations/global/keyRings/[KEYRING-NAME]/cryptoKeys/[KEY-NAME]...
29
votes
7
answers
51k
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
17k
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 ...
24
votes
3
answers
10k
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 ...
18
votes
2
answers
9k
views
How can I save google cloud build step text output to file
I'm trying to use google cloud build. At one step, I need to get a list of all running compute instances.
- name: gcr.io/cloud-builders/gcloud
args: ['compute', 'instances', 'list']
and it works ...
17
votes
4
answers
9k
views
How can I grant the account permission to list enabled APIs?
During a build on Cloud Build, I get the following warning:
Step #2: WARNING: Unable to verify that the Appengine Flexible API is enabled for project [xxxxx]. You may not have permission to list ...
17
votes
6
answers
16k
views
ERROR: (gcloud.beta.functions.deploy) ... message=[The caller does not have permission]
I am trying to deploy code from this repo:
https://github.com/anishkny/puppeteer-on-cloud-functions
in Google Cloud Build. My cloudbuild.yaml file contents are:
steps:
- name: 'gcr.io/cloud-...