gpt4 book ai didi

docker - 云构建CI/CD和k8s文件

转载 作者:行者123 更新时间:2023-12-02 11:53:50 24 4
gpt4 key购买 nike

我正在使用云构建和GKE k8s集群,并且已经从github设置CI / CD到云构建。

我想知道在存储库中添加CI构建文件和Dockerfile或在另一个存储库中分别管理配置文件是否很好?

在业务逻辑存储库中添加Ci&k8s配置文件是否很好?

通过管理CI / k8 yaml文件向GKE实现CI / CD云构建的最佳方法是什么

最佳答案

是的,您可以添加部署指令,通常是在项目的专用文件夹中,而后者又可以使用cicd存储库

以“ kelseyhightower/pipeline-application ”为例,其中:

Changes pushed to any branch except master should trigger the following actions:

  • build a container image tagged with the build ID suitable for deploying to a staging cluster
  • clone the pipeline-infrastructure-staging repo
  • patch the pipeline deployment configuration file with the staging container image and commit the changes to the pipeline-infrastructure-staging repo

The pipeline-infrastructure-staging repo will deploy any updates committed to the master branch.

关于docker - 云构建CI/CD和k8s文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/56231280/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com