当前位置:网站首页>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.
jenkins
Travis 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 .
边栏推荐
- 还在纠结报表工具的选型么?来看看这个
- xctf attack and defense world web master advanced area webshell
- Interpretation of the paper (GSAT) "Interpretable and Generalizable Graph Learning via Stochastic Attention Mechanism"
- Deep learning Course2 first week Practical aspects of Deep Learning exercises
- npm npm
- img 响应式图片的实现(含srcset属性、sizes属性的使用方法,设备像素比详解)
- From 0 to 1: Design and R&D Notes of Graphic Voting Mini Program
- String - Trie
- TCP 可靠吗?为什么?
- 三、mysql 存储引擎-建库建表操作
猜你喜欢
随机推荐
小程序毕设作品之微信美食菜谱小程序毕业设计成品(8)毕业设计论文模板
E - Integer Sequence Fair
复现gallerycms字符长度限制短域名绕过
y84.第四章 Prometheus大厂监控体系及实战 -- prometheus告警机制进阶(十五)
D - Linear Probing- 并查集
计算由两点定义的线的角度
【参营经历贴】2022网安夏令营
Ten years after graduation, financial freedom: those things that are more important than hard work, no one will ever teach you
npm包【详解】(内含npm包的开发、发布、安装、更新、搜索、卸载、查看、版本号更新规则、package.json详解等)
联邦学习入门
Chapter 19 Tips and Traps: Common Goofs for Novices
excel split text into different rows
excel change cell size
论文解读(GSAT)《Interpretable and Generalizable Graph Learning via Stochastic Attention Mechanism》
系统可用性:SRE口中的3个9,4个9...到底是个什么东西?
编曲软件FL studio20.8中文版功能和作用
perspectiveTransform warpPerspective getPerspectiveTransform findHomography
欧拉路径与欧拉回路
IDEA常用插件
PHP算法之有效的括号