Dit deel is nog niet vertaald. Je ziet de Engelse tekst.
$ als gewone gebruiker# als root (of met sudo)
Understanding CI/CD Concepts
CI means Continuous Integration. Developers merge small changes often.
- Each merge starts an automatic build and test.
- CD means Continuous Deployment in this course. It moves good code to users.
- CI/CD automates the slow parts: build, test, and release.
- CI/CD tools share four words: pipeline, workflow, job, and trigger.
- Jenkins, GitHub Actions, CircleCI, and ArgoCD are common tools.
- Each tool uses these words in its own way.
In more detail
- In the old way, a team merges one big change after many weeks.
- Then testers work by hand. Bugs show up late and cost more to fix.
- CI makes each change small. The check comes back in minutes.
- Some teams use CD for Continuous Delivery too. Then the code is always ready to ship.
- A push or a pull request is a common trigger. A merge is another one.
- A pipeline or workflow is the full run. A job is one piece of work inside it.
- The tool shows a red or green result. The team acts on it fast.
- The reading gives the shared words first. The setup comes in module 02.
Setting Up CI/CD Pipelines
A CI/CD pipeline is an automatic path: build, test, then deploy.
- It saves manual work, and it finds errors early.
- Pipelines fit containers well, because every run starts the same way.
- Choose a tool by features, hosting, price, and scale.
- Jenkins, GitHub Actions, and GitLab CI are the examples here.
- Jenkins suits complex pipelines. GitHub Actions suits teams that live in GitHub.
- There is no single best tool. The project decides.
In more detail
- The pipeline starts with a trigger, like a new commit.
- Stage 1 builds the app. Stage 2 tests it. Stage 3 deploys it.
- Common checks: ease of use, version control, hosting, plugins, and pricing.
- Hosted tools need no server. Self-hosted tools give more control.
- Jenkins is open and very flexible. It needs a server and regular care.
- GitHub Actions runs inside GitHub. GitLab CI runs inside GitLab.
- The three video tasks show the setup on screen. They have no text.
- Start with one small job, then add the other stages.
Best Practices in Creating CI/CD Pipelines
Put all code and pipeline files in version control.
- Automate the build. Never build by hand.
- Test early, and run tests in parallel.
- Use infrastructure as code (IaC) for servers and environments.
- Orchestrate the stages in one clear flow.
- Add monitoring, scaling, and security.
- The video, The "Ideal" CI/CD Pipeline, has no text.
In more detail
- Version control is the base. You can see every change and undo it.
- The pipeline file is code too. Review it like code.
- Build automation means one command makes the same result every time.
- Parallel testing runs many test jobs at once. Feedback comes faster.
- IaC writes servers as files. The same file gives the same environment.
- Keep secrets out of the repo. Use the tool's secret store.
- Monitoring watches run time, failures, and cost.
- Keep the pipeline fast and green. Remove flaky tests, because they hide real bugs.
Continuous Integration and Continuous Deployment (CI/CD) Quiz
This module is one quiz. It has no readings or videos.
- The quiz checks the words from module 01.
- It checks the pipeline setup from module 02.
- It checks the best practices from module 03.
- It also checks how to choose a tool.
- A quiz is a check, not new material.
In more detail
- Review the difference between CI, delivery, and deployment.
- Review the parts: pipeline, workflow, job, and trigger.
- Review the three tools: Jenkins, GitHub Actions, and GitLab CI.
- Review the Jenkins vs GitHub Actions comparison.
- Review the practice list: version control, tests, IaC, monitoring, and security.
- Say each meaning in one short sentence before the quiz.
Key terms
The words of this course in one table. Learn them before the quiz or exam.
| Term | Meaning |
|---|---|
| ArgoCD | A tool that keeps a cluster in sync with Git. |
| Build automation | Making the build run without a person. |
| CD | Continuous Deployment: moving good code to users. |
| CI | Merging code often, with an automatic build and test. |
| CircleCI | A hosted CI/CD service. |
| Deployment strategy | The plan for sending a new version to users. |
| GitHub Actions | The CI/CD system built into GitHub. |
| GitLab CI/CD | The CI/CD system built into GitLab. |
| IaC | Infrastructure as code; servers written as files. |
| Jenkins | An open-source automation server. |
| Job | One task inside a pipeline. |
| Monitoring | Watching the system and the pipeline. |
| Orchestration | Putting the stages in the right order. |
| Parallel testing | Running many tests at the same time. |
| Pipeline file | A file in the repo that describes the pipeline. |
| Pipeline | The full path from code to deploy. |
| Plugin | An add-on that gives a tool more features. |
| Rollback | Going back to the last good version. |
| Runner | The machine that runs a job. |
| Secret | A password, token, or key that must stay private. |
| Stage | One big part of a pipeline, like build or test. |
| Trigger | The event that starts a pipeline. |
| Version control | A system that stores every change to the code. |
| Workflow | The name some tools use for a pipeline. |
Check yourself
Answer each question first, then open it to check the answer.
1What does CI do after a developer merges code?
It starts an automatic build and test.
2What is the difference between a pipeline and a job?
A pipeline is the full run. A job is one part of it.
3Name two CI/CD tools from this module.
Jenkins and GitHub Actions, or any other two from the list.
4What are the three usual jobs in a pipeline?
Build, test, and deploy.
5When is Jenkins a good choice?
When the pipeline is complex and the team needs full control.
6When is GitHub Actions a good choice?
When the team keeps its code and work inside GitHub.
7Why do we keep the pipeline file in version control?
So every change is tracked, reviewed, and easy to undo.
8What does parallel testing save?
It saves time, because many tests run at the same time.
9What is one security rule for a pipeline?
Keep secrets out of the repo and use a secret store.
10Which lesson covers the tool comparison?
Module 02, Setting Up CI/CD Pipelines.
11What is the difference between CI and CD?
CI checks new code. CD sends good code to users.
12What should you review before the quiz?
The words, the pipeline stages, the tools, and the best practices.
Useful links
Official documentation and pages for this course.
- Jenkins — the open-source automation server.
- GitHub Actions — workflows inside GitHub.
- GitLab CI/CD — pipelines inside GitLab.
- Argo CD — GitOps delivery for Kubernetes.
- CircleCI — a hosted CI/CD service.
- Introduction to CI/CD (GitLab) — the stages in plain words.