cil*_*hex 3 google-container-registry google-cloud-build
我成功地使用 Google Cloud Build 在推送到主分支后将我的应用程序构建到容器中,并将该构建的容器存储在 Google Cloud 注册表中。
我正在尝试简化我的设置,因此删除了 cloudbuild.yaml,转而采用 Cloud Build 的“自动检测 docker”功能。
容器仍然会构建,但不同之处在于构建的映像没有标记为latest. latest仍分配给仍存在时已完成的旧版本cloudbuild.yaml。
我怎样才能使每个新的容器构建都被标记为latest不使用cloudbuild.yaml?
cil*_*hex 10
答案是肯定的,具体方法如下:
$COMMIT_SHA在“图像名称”下,编辑要在末尾替换的值latest运行触发器,您应该会看到最近的容器构建带有latest.
| 归档时间: |
|
| 查看次数: |
2822 次 |
| 最近记录: |