متقدم
البحث فيالملخصات
طريقة البحث
  • الكلمات تجد عناوين الدروس والنص والكود. صفِّ حسب النوع (أدلة، دورات، برامج، كتب) أو ابقَ في هذا الكتاب.
  • book:rhcsa و ch:8 يضيّقان البحث؛ ‎#code يجد الكلمة داخل أوامر الدروس فقط.
  • "كلمتان" تجد العبارة بالضبط.
  • الكلمات العادية تجد الأسماء والنصوص والأمثلة.
  • ↑ ↓ للتنقل · Enter للفتح · Esc للإغلاق · / للبحث
جرّب:

الدورة 4الاسم في الدورة: Manara DevOps 4 - CI/CD

CI/CD

Course 4 of 6 in the DevOps path on Manara. CI/CD concepts.

ملاحظة

My result — Tasks in this course: all done (11/11); Module review quizzes: 100% (each module); Path progress: all 53 tasks of the 6 courses done.

Course page: Manara

  • 8 الدروس
  • 1 الأوامر
  • 2 المعامل

هذا الجزء لم يُترجم بعد. أنت ترى النص الإنجليزي.

$ مستخدم عادي# بصلاحية root (أو مع sudo)

4.1

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.

4.2

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.

4.3

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.

4.4

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.

4.5

Key terms

The words of this course in one table. Learn them before the quiz or exam.

TermMeaning
ArgoCDA tool that keeps a cluster in sync with Git.
Build automationMaking the build run without a person.
CDContinuous Deployment: moving good code to users.
CIMerging code often, with an automatic build and test.
CircleCIA hosted CI/CD service.
Deployment strategyThe plan for sending a new version to users.
GitHub ActionsThe CI/CD system built into GitHub.
GitLab CI/CDThe CI/CD system built into GitLab.
IaCInfrastructure as code; servers written as files.
JenkinsAn open-source automation server.
JobOne task inside a pipeline.
MonitoringWatching the system and the pipeline.
OrchestrationPutting the stages in the right order.
Parallel testingRunning many tests at the same time.
Pipeline fileA file in the repo that describes the pipeline.
PipelineThe full path from code to deploy.
PluginAn add-on that gives a tool more features.
RollbackGoing back to the last good version.
RunnerThe machine that runs a job.
SecretA password, token, or key that must stay private.
StageOne big part of a pipeline, like build or test.
TriggerThe event that starts a pipeline.
Version controlA system that stores every change to the code.
WorkflowThe name some tools use for a pipeline.

4.6

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.

تدرّب

كل الأوامر في هذا الفصل