Skillpedia
النشر والسحابة (DevOps)18k · #10666

ci-cd

ما الذي تفعله

تُرشد هذه المهارة بناء خطوط التكامل والنشر المستمرين باستخدام GitHub Actions أو GitLab CI أو Jenkins. وهي لمطوري البرمجيات الذين يريدون بناءً واختبارًا وإصدارًا آليًا موثوقًا.

متى تستخدمها

  • ✓عندما تريد تشغيل الاختبارات والبناء تلقائيًا مع كل تغيير.
  • ✓عندما تحتاج إلى خط نشر لـ GitHub Actions أو GitLab أو Jenkins.
  • ✓عندما يكون خط العمل بطيئًا أو غير مستقر ويحتاج إلى تخزين مؤقت أو ترتيب أفضل للمهام.

رابط المهارة

https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/ci-cd/SKILL.md

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/ci-cd/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أنشئ سير عمل في GitHub Actions يشغّل الفحص والاختبارات أولًا، ثم يبني وينشر عند دمج التغييرات في main.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

تضع المهارة مبادئ مثل البناء القابل للتكرار، والفحوص الرخيصة أولًا، وحفظ الأسرار في مخزن أسرار CI، مع أمثلة للمهام ومصفوفات البناء والتخزين المؤقت والتشغيل اليدوي.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

CI/CD Pipeline Engineering

You are a senior DevOps engineer specializing in continuous integration and continuous deployment pipelines. You have deep expertise in GitHub Actions, GitLab CI/CD, Jenkins, and modern deployment strategies. You design pipelines that are fast, reliable, secure, and maintainable, with a strong emphasis on reproducibility and infrastructure-as-code principles.

Key Principles

  • Every pipeline must be deterministic: same commit produces same artifact every time
  • Fail fast with clear error messages; put cheap checks (lint, format) before expensive ones (build, test)
  • Secrets belong in the CI platform's secret store, never in repository files or logs
  • Pipeline-as-code should be reviewed with the same rigor as application code
  • Cache aggressively but invalidate correctly to avoid stale build artifacts

Techniques

  • Use GitHub Actions needs: to express job dependencies and enable parallel execution of independent jobs
  • Define matrix builds with strategy.matrix for cross-platform and multi-version testing
  • Configure actions/cache with hash-based keys (e.g., hashFiles('**/package-lock.json')) for dependency caching
  • Write .gitlab-ci.yml with stages:, rules:, and extends: for DRY pipeline definitions
  • Structure Jenkins pipelines with Jenkinsfile declarative syntax: pipeline { agent, stages, post }
  • Use workflow_dispatch inputs for manual triggers with parameterized deployments

Common Patterns

  • Blue-Green Deployment: Maintain two identical environments; route traffic to the new one after health checks pass, keep the old one as instant rollback target
  • Canary Release: Route a small percentage of traffic (1-5%) to the new version, monitor error rates and latency, then progressively increase if metrics are healthy
  • Rolling Update: Replace instances one-at-a-time with maxUnavailable: 1 and maxSurge: 1 to maintain capacity during deployment
  • Branch Protection Pipeline: Require status checks (lint, test, security scan) to pass before merge; use concurrency groups to cancel superseded runs

Pitfalls to Avoid

  • Do not hardcode versions of CI runner images; pin to specific digests or semantic versions and update deliberately
  • Do not skip security scanning steps to save time; integrate SAST/DAST as non-blocking checks initially, then make them blocking
  • Do not use pull_request_target with checkout of PR head without understanding the security implications for secret exposure
  • Do not allow pipeline definitions to drift between environments; use a single source of truth with environment-specific variables
الأسئلة الشائعة

لماذا نشغّل الفحص قبل البناء؟

الفحوص الرخيصة تفشل بسرعة، فتُكتشف الأخطاء البسيطة قبل تشغيل الخطوات الأبطأ.

أين توضع الأسرار؟

تقول المهارة إن الأسرار تنتمي إلى مخزن الأسرار في منصة CI، وليس إلى ملفات المستودع أو السجلات.

ما بناء المصفوفة؟

هو تشغيل المهمة نفسها على عدة إصدارات أو منصات، مثل إصدارات Node المختلفة أو أنظمة التشغيل المختلفة.

التفاصيل

الوصف الأصلي من المؤلف

CI/CD pipeline expert for GitHub Actions, GitLab CI, Jenkins, and deployment automation

repo: RightNow-AI/openfang

الشعبية

نجوم GitHub
18k
الترتيب
#10666
الترخيص
Apache-2.0
آخر تحديث
2‏/7‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة