如何在数字海洋中为多种环境配置Circle CI或Jenkins
我们制作了一个应用程序,我们部署了生产分支,测试分支,开发分支,在不同的数字海洋液滴上。但是我想使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
做到这一点的一种方法是通过触发器对提交的位置
,即
如果创建PR,则运行将此PR代码部署到您的测试液滴的CD作业[或为此PR创建一个PR]
一旦PR合并以开发 - 部署到登台液滴
- 然后将其部署到生产
One way to do this is via triggers on where the commit was made
i.e.
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]
Once the PR is merged to develop - deploy develop to your staging droplet
Once develop is promoted to mainline - then deploy it to production