【问题标题】:How to configure CI/CD Pipeline from BitBucket to Google Cloud?如何配置从 BitBucket 到 Google Cloud 的 CI/CD 管道?
【发布时间】:2018-10-05 07:13:26
【问题描述】:
我们有一个已部署在 Google Cloud App Engine 上的 NodeJS 应用程序。源代码在 Bitbucket 中。配置 CI/Cd 部署的最佳方式是什么?我们希望在执行测试用例后将代码从 bitbucket 部署到 Google Cloud App Engine 作为代码提交。
我们想知道在 Bitbucket 的配置文件中放入什么来设置 Google Cloud App Engine。
【问题讨论】:
标签:
google-app-engine
bitbucket
bitbucket-pipelines
【解决方案1】:
当有新的提交时,您可以使用Build Triggers 将存储在 Bitbucket 中的应用程序自动部署到 App Engine。 Here,您可以找到使用 Cloud Build 自动化 App Engine 部署的快速入门,该构建由 Cloud Source Repositories 中的提交触发,并且可以类似地在 Bitbucket 上实现。
- 请注意,目前 Build Triggers 处于 Beta 阶段,不适合在关键应用程序中实时使用。