google-cloud-build

invalid image name in cloud build when using domain-scoped project

折月煮酒 提交于 2020-05-11 12:58:48
问题 I'm trying to build a container with GCP's Cloud Build. I'm using the simple template from the quickstart doc. I've done this before successfully. However, this time I am using a project which is under an "organization". So the project ID is mycompany.com:projectX , rather than simply projectX . I am unable to get the build to complete. When I run: gcloud builds submit --tag gcr.io/mycompany.com:project-id/helloworld I get the following error: (gcloud.builds.submit) INVALID_ARGUMENT: invalid

How to pass API parameters to GCP cloud build triggers

有些话、适合烂在心里 提交于 2020-04-30 09:10:28
问题 I have a large set of GCP Cloud Build Triggers that I invoke via a Cloud scheduler, all running fine. Now I want to invoke these triggers by an external API call and pass them dynamic parameters that vary in values and number of parameters. I was able to start a trigger by running an API request but any JSON parameters in the API request that I sent were ignored. Google talks about substitution parameters at https://cloud.google.com/cloud-build/docs/configuring-builds/substitute-variable

How to pass API parameters to GCP cloud build triggers

与世无争的帅哥 提交于 2020-04-30 09:08:14
问题 I have a large set of GCP Cloud Build Triggers that I invoke via a Cloud scheduler, all running fine. Now I want to invoke these triggers by an external API call and pass them dynamic parameters that vary in values and number of parameters. I was able to start a trigger by running an API request but any JSON parameters in the API request that I sent were ignored. Google talks about substitution parameters at https://cloud.google.com/cloud-build/docs/configuring-builds/substitute-variable

Cloud build: substitutions in `substitutions` section?

折月煮酒 提交于 2020-04-16 04:18:19
问题 2019-07-04: Update Ended up using options: env: Not perfect since doesn't allow variable in build steps but atleast environments are covered. Problem GCP's Cloud build is not substituting variables in substitutions section. Is there a way to have those substitutions applied? Example snippet substitutions: _HUGO_VERSION: "0.55.6" _HUGO_IMG: gcr.io/$PROJECT_ID/hugo:$_HUGO_VERSION Expectation To have $_HUGO_VERSION and $PROJECT_ID replaced with values, to get: _HUGO_IMG=gcr.io/foo/hugo:0.55.6

Cloud build: substitutions in `substitutions` section?

随声附和 提交于 2020-04-16 04:18:06
问题 2019-07-04: Update Ended up using options: env: Not perfect since doesn't allow variable in build steps but atleast environments are covered. Problem GCP's Cloud build is not substituting variables in substitutions section. Is there a way to have those substitutions applied? Example snippet substitutions: _HUGO_VERSION: "0.55.6" _HUGO_IMG: gcr.io/$PROJECT_ID/hugo:$_HUGO_VERSION Expectation To have $_HUGO_VERSION and $PROJECT_ID replaced with values, to get: _HUGO_IMG=gcr.io/foo/hugo:0.55.6

How to connect persistent storage to Google Cloud Build?

你。 提交于 2020-04-10 04:03:32
问题 I have a maven spring-boot project deployed on appengine that I am building and deploying using Google Cloud Build using the following builder image: https://github.com/strudeau/mvn-gcloud-builder When performing a build, most of the time is spent downloading the plugins and dependencies from maven. I would like to be able to mount a persistent volume to this Docker image so as to be able to keep a persistent .M2 directory where my plugins and dependencies would be stored to avoid having them

How to connect persistent storage to Google Cloud Build?

社会主义新天地 提交于 2020-04-10 04:03:23
问题 I have a maven spring-boot project deployed on appengine that I am building and deploying using Google Cloud Build using the following builder image: https://github.com/strudeau/mvn-gcloud-builder When performing a build, most of the time is spent downloading the plugins and dependencies from maven. I would like to be able to mount a persistent volume to this Docker image so as to be able to keep a persistent .M2 directory where my plugins and dependencies would be stored to avoid having them

understanding “action required” email from GCP, re: enable Cloud Build API

a 夏天 提交于 2020-04-08 09:55:52
问题 I use Firebase for my web apps, not Google Cloud Platform -- though I'm aware that behind the scenes, every Firebase project is also a GCP project. I just received an email from GCP, saying (excerpted): [Action required]: Enable the Cloud Build API for your projects before April 20, 2020, to ensure Cloud Function is built and deployed correctly ... You must enable the Cloud Build API for your project(s) to ensure your Cloud Function is built and deployed correctly. Once you enable the API,

understanding “action required” email from GCP, re: enable Cloud Build API

。_饼干妹妹 提交于 2020-04-08 09:55:50
问题 I use Firebase for my web apps, not Google Cloud Platform -- though I'm aware that behind the scenes, every Firebase project is also a GCP project. I just received an email from GCP, saying (excerpted): [Action required]: Enable the Cloud Build API for your projects before April 20, 2020, to ensure Cloud Function is built and deployed correctly ... You must enable the Cloud Build API for your project(s) to ensure your Cloud Function is built and deployed correctly. Once you enable the API,

understanding “action required” email from GCP, re: enable Cloud Build API

你离开我真会死。 提交于 2020-04-08 09:55:27
问题 I use Firebase for my web apps, not Google Cloud Platform -- though I'm aware that behind the scenes, every Firebase project is also a GCP project. I just received an email from GCP, saying (excerpted): [Action required]: Enable the Cloud Build API for your projects before April 20, 2020, to ensure Cloud Function is built and deployed correctly ... You must enable the Cloud Build API for your project(s) to ensure your Cloud Function is built and deployed correctly. Once you enable the API,