当前位置:网站首页>What is CICD excuse me
What is CICD excuse me
2022-08-01 23:07:00 【Ziwei front end】
CI, Continuous Integration, continuous integration.CD, Continuous Deployment, continuous deployment.
CICD is a general term, and there is no need to distinguish between the two.In the process from development, testing to launch, some automated processing is carried out with the help of CICD to ensure the quality of the project.
CICD is integrated with git, which can be understood as git hooks on the server side: when the code is pushed to the remote warehouse, use WebHooks toThe current code is automatically built, tested, and deployed in the build server (ie, the CI server, also known as the Runner).

It has several benefits:
- After the feature branch is submitted, automated testing, syntax checking, etc. are performed through CICD. If CICD is not passed, CodeReview cannot be performed, and it cannot be merged into the production environment branch for launch
- After the feature branch is submitted, use CICD to check the risks of npm libraries, check the risks of building image containers, etc.
- After the function branch is submitted, build an independent mirror of the current branch code through CICD and generate an independent branch environment address for testing. For example, a testable address is generated for each function branch, usually
this address.dev.shanyue.tech - After passing the test of the function branch, merge it into the main branch, automatically build the image and deploy it to the production environment (generally the production environment needs to be triggered manually and deployed automatically)

Due to the comprehensive involvement of CICD in recent years, the workflow of project development is the workflow of CICD. Please see a relatively complete CICD Workflow.
CICD-tools
CICD is integrated with CICD tools and code hosting services.CICD can sometimes be understood as a build server for CICD, and services that provide CICD, such as the following products, will provide build services integrated with github/gitlab.
jenkinsTravis CI
If your company does not have CICD infrastructure, then you can try github's free CICD service: github actions (opens new window).
Companies generally use gitlab CI as a CICD tool, at this time they need to build gitlab Runner as a build server.
A simple CICD configuration
Each CICD product has its own configuration method, but the general usage is similar.The following CI script refers to automatic deployment when there are code changes on the master.
deploy:stage: deployonly:- masterscript:- docker build -t harbor.shanyue.tech/fe/devtools-app- docker push harbor.shanyue.tech/fe/devtools-app- helm upgrade -install devtools-app-chart .边栏推荐
猜你喜欢
随机推荐
Chapter 19 Tips and Traps: Common Goofs for Novices
PAM 回文自动机
添加大量元素时使用 DocumentFragments
最短路模板
APP专项测试:流量测试
萍不回答
[深入研究4G/5G/6G专题-48]: 5G Link Adaption链路自适应-4-下行链路自适应DLLA-PDCCH信道
IDEA入门看这一篇就够了
对于在新标签页中打开的链接,始终使用“noopener”或“noreferrer”
部门项目源码分享
Chapter 12 End-User Task As Shell Scripts
excel vertical to horizontal
程序员如何优雅地解决线上问题?
检查点是否在矩形内
1391D. 505 状压dp
03、GO语言变量定义、函数
小程序毕设作品之微信体育馆预约小程序毕业设计成品(3)后台功能
深度学习Course2第二周Optimization Algorithms习题整理
小程序毕设作品之微信美食菜谱小程序毕业设计成品(5)任务书
E - Integer Sequence Fair








