使用以下输出生成错误(使用Rails应用程序)
ERROR: (gcloud.app.deploy) There is a cloudbuild.yaml in the current directory, and the runtime field in /workspace/app.yaml is currently set to [runtime: ruby]. To use your cloudbuild.yaml to build a custom runtime, set the runtime field to [runtime: custom]. To continue using the [ruby] runtime, please remove the cloudbuild.yaml from this directory.发布于 2018-09-28 15:49:38
Cloudbuild.yaml应该灵活地使用App,而不需要使用自定义运行时。正如错误消息中详细介绍的那样,如果要在非自定义运行时部署,则不能将app.yaml和cloudbuild.yaml放在同一个目录中,为了纠正这种情况,请执行以下步骤:
以下是一个例子:
==================FROM:
steps:
- name: 'gcr.io/cloud-builders/gcloud'
args: ['app', 'deploy']
timeout: '1600s' ===================TO:
steps:
- name: 'gcr.io/cloud-builders/gcloud'
args: ['app', 'deploy', '[SUBDIRECTORY/app.yaml]']
timeout: '1600s' 发布于 2019-12-28 18:09:24
处理此问题的一种方法是将cloudbuild.yaml文件的名称更改为cloud_build.yaml (您也可以移动该文件),然后转到Cloud中的触发器:

并将其从Autodetected更改为手动选择Cloud Build configuration file:

有关更多信息,请参见此Github问题
https://stackoverflow.com/questions/52555496
复制相似问题