Why does a git push on any Project trigger a build in Google Cloud Build (GitHub Apps)?

余生长醉 提交于 2019-12-06 11:06:03

问题


I want to enable the Google Cloud Build Github App in several Github projects.

  1. So on the Google Cloud Build Github App, I click on grant this app access to your GitHub account

  1. Then on the following screen, I install Google Cloud Build on All repositories.

  1. Then I'm redirecting to a couple of Google Authorization screens.

  2. Then I endup on the Google following screen, where I select an existing Google project-id then accept the consent screen.

The issue is: a git push on any of my Github repo triggers a build in this google project-id (and not on his related Google project-id)

Of course I want

  • a push in Github project#1 to trigger a build in Google Cloud Build project#1
  • a push in Github project#2 to trigger a build in Google Cloud Build project#2

回答1:


There is now an "Add another project" button that allows you to connect repositories directly to different projects when setting up the Google Cloud Build connection.

See this screenshot:




回答2:


I believe that's because the app works on the Account level and not on the project level.



来源:https://stackoverflow.com/questions/52478742/why-does-a-git-push-on-any-project-trigger-a-build-in-google-cloud-build-github

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!