如何在数字海洋中为多种环境配置Circle CI或Jenkins

发布于 2025-02-14 00:48:50 字数 259 浏览 1 评论 0原文

我们制作了一个应用程序,我们部署了生产分支,测试分支,开发分支,在不同的数字海洋液滴上。但是我想使用Jenkins或Circle CI为他们设置CD(以更轻松和更好的方式为准)。

我将如何为所有这些分支创建CD环境,我需要分别为每个分支机构设置吗?

例如 - 如果我利用Jenkins设置CD管道,那么我是否需要为Dev,UAT和Prod环境分开设置Jenkins?

我对此感到非常困惑,请让我知道如何在数字海洋液滴上为所有这些分支设置适当的CD环境的清晰结构。

We have made an app, we deployed out production branch , testing branch, development branch on different Digital Ocean Droplets. But I want to set up CD for them using Jenkins or Circle CI ( whichever the one which would be easier and better ).

How would I be able to create CD environment for all these branches, would I need to do set up for each branch seperately ?.

For example - If I make use of Jenkins to set up CD pipeline, then would I need to set up Jenkins seperately for dev, uat, and prod environment ?.

I am feeling really confused about it, please let me know the clear structure of how can I set up proper CD environment for all these branches on Digital Ocean droplet.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

女皇必胜 2025-02-21 00:48:50

做到这一点的一种方法是通过触发器对提交的位置

,即

  1. 如果创建PR,则运行将此PR代码部署到您的测试液滴的CD作业[或为此PR创建一个PR]

  2. 一旦PR合并以开发 - 部署到登台液滴

  3. 主线后,部署到您的登台液滴

    - 然后将其部署到生产

One way to do this is via triggers on where the commit was made

i.e.

  1. If a PR is created then you run a CD job that deploys this PR code to your testing droplet [or create one for this PR]

  2. Once the PR is merged to develop - deploy develop to your staging droplet

  3. Once develop is promoted to mainline - then deploy it to production

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文