【问题标题】:Deploy a container to Cloud Run after pushing to Artifact Registry automaticlly自动推送到 Artifact Registry 后将容器部署到 Cloud Run
【发布时间】:2021-01-11 18:07:21
【问题描述】:

我想在 Google Cloud Artifact Registry 和 Cloud Run 之间建立连接(无需编写代码)。所以每次推送时,我都想在 Cloud Run 上创建/更新一个同名的服务。

这可能吗?

【问题讨论】:

    标签: google-cloud-platform google-cloud-run google-artifact-registry


    【解决方案1】:

    不,你不能。推送映像的系统必须在使用新映像触发新 Cloud Run 修订版的部署之后。 latest 标签,如果你愿意的话。

    Artifact 注册表上的推送事件不可能自动执行。

    【讨论】:

      【解决方案2】:

      我建议你考虑一下 Container Registry,然后你可以连接自动事件。

      【讨论】:

      • 请考虑提供实施示例和详细说明。
      • @Afelaia,AFAIK,Container Registry 也没有自动创建 Cloud Run 服务。我们最终编写了一些代码来监听推送事件,然后自己创建服务。
      • 如果与 cloudBuild 配对,它可以自动化,在使用标签推送图像后在构建步骤中部署:最新
      猜你喜欢
      • 1970-01-01
      • 2022-01-23
      • 2021-12-22
      • 1970-01-01
      • 1970-01-01
      • 2021-05-31
      • 2022-01-27
      • 2023-03-31
      • 1970-01-01
      相关资源
      最近更新 更多