github - Google Cloud 为 GitHub Repo 构建触发器说 "No tag matches"总是

标签 github google-cloud-platform google-cloud-build

构建触发器设置

  • 为 GitHub 存储库设置构建触发器
    • 触发类型:标签
    • 标签(正则表达式):.*
    • 云构建配置文件
    • 替代变量:
    • _DEPLOYMENT_ENV:暂存 配置如下: Trigger Config

我看过的东西

  • 我已经查看了 GitHub 应用程序和授权。 Google Cloud Platform 已获批准
  • Google Cloud GitHub Marketplace Plugin用于 repo 和功能。构建容器后,我在拉取请求上得到一个绿色复选标记

目前的结果和期望

我希望有匹配的标签,因为 repo 有一些标签。我推送了一些新标签,但没有任何改变。

最佳答案

Note: Google Cloud Build's GitHub Marketplace Plugin is still in Alpha, so its features are not reliable and it is not unusual to run into breaking changes... and there is no active support for it.

您看到的屏幕来自 Google Cloud Platform -> Cloud Build -> Triggers。它与 GitHub Marketplace 中的 Google Cloud 插件不同且无关(我知道,这令人困惑)。

您设置的触发器当前会在执行触发器之前将 GitHub 存储库拉入 Google Cloud Source Repositories。

GitHub 插件,这几天我遇到了一些问题,我认为他们很快就会对其引入一些新的重大更改,但是当它工作时,它不需要任何触发器并且纯粹查看 cloudbuild。 yaml 文件来自动构建。我不得不在 cloudbuild.yaml 中创建单独的脚本以根据标签/分支设置不同的构建(Cloud Build Triggers 让你在 UI 中完成所有这些),但是作为 GitHub 插件的一部分你得到的是这个“GitHub Checks Events GitHub 中相应提交旁边的“(绿色勾号/红色叉号)以及一个非常简短的详细信息页面。 GitHub 插件目前对我来说很奇怪,我正在切换到使用 Cloud Build Triggers,直到他们解决问题为止。

enter image description here enter image description here

我认为他们正在努力弥合 Google Cloud Build Triggers 和 Cloud Build GitHub 插件之间的差异...只是从我在 Cloud Build 中看到的当前日志消息的感觉...

关于github - Google Cloud 为 GitHub Repo 构建触发器说 "No tag matches"总是,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54601271/

相关文章:

stackdriver - 使用 Stackdriver 监控 Cloud Build 错误并发出警报

python - Github-API : How do I plot the number of commits to a repo?

google-cloud-platform - 如何更新Google容器优化操作系统中的容器?

spring-boot - 失败 : (ID: 838926df) did not find any jar files with a Main-Class manifest entry

google-cloud-platform - 通过 GCP 控制台运行 Cloud Build 触发器返回 'build.service_account' 无法为触发build设置字段

java - 从 Android 访问云存储

github - 如何将问题从 Google Code 项目导出到 Github?

git - (Github) 远程 : Permission to username/MyProject. git 被拒绝 ($unknown_account)

javascript - 在 Node.js : UnhandledPromiseRejectionWarning: Error: bad public key size 中使用 libsodium 进行 GitHub API secret 加密

node.js - 通过 Heroku 安全地使用 Google 服务帐户