我可以将在 Cloud Build 中构建的映像推送到不是 Cloud Storage 的映像注册表吗?

Can I push an image built in Cloud Build to an image registry that is not Cloud Storage?

使用 Cloud Build,我可以将生成的图像推送到不同的图像注册表而不是 gcr.io 吗?

如果您的构建生成二进制文件或 tarball 等工件,您可以选择将它们存储在 Cloud Storage 或任何私有 third-party 存储库中。

您可以选中 this example 将图像推送到 Docker Hub。请注意,在示例构建配置文件中,REPOSITORY 是您要将图像推送到的 Docker 存储库的名称。您应该尝试类似的步骤,以便将生成的图像推送到私有图像注册表。

这样做也可能意味着像 repositories from GitHub and from repositories from GitHub Enterprise 中那样构建存储库。