Langsung ke konten
Skillpedia
Deploy & cloud (DevOps)18k Β· #10666

ci-cd

Fungsinya

Skill ini memandu pembangunan pipeline integrasi dan deployment berkelanjutan dengan GitHub Actions, GitLab CI, atau Jenkins. Skill ini untuk pengembang yang menginginkan build, pengujian, dan rilis otomatis yang andal.

Kapan dipakai

  • βœ“Saat Anda ingin pengujian dan build otomatis berjalan setiap kali ada perubahan.
  • βœ“Saat Anda memerlukan pipeline deployment untuk GitHub Actions, GitLab, atau Jenkins.
  • βœ“Saat pipeline Anda lambat atau sering gagal dan membutuhkan cache atau urutan job yang lebih baik.

Link skill

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

Salin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.

Cara pakai

Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.

Pesan siap tempel

Gunakan skill ini untuk membantu saya: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-skills/bundled/ci-cd/SKILL.md Baca file SKILL.md di link tersebut dan ikuti instruksinya untuk tugas saya.
Mau AI Anda menemukan skill seperti ini sendiri?Pasang MCP Skillpedia gratis: cukup satu baris, dan AI mencari di antara 15.000+ skill sebelum tiap tugas.Pasang dalam 1 menit β†’

Contoh permintaan ke AI

β€œBuat workflow GitHub Actions yang menjalankan lint dan tes terlebih dahulu, lalu membangun dan men-deploy saat perubahan digabung ke main.”

5 skill baru setiap minggu. 1 menit baca.

Cara kerjanya

Skill ini menetapkan prinsip seperti build yang dapat diulang, pemeriksaan murah dijalankan lebih dulu, dan rahasia disimpan di penyimpanan rahasia CI, serta memberi contoh untuk job, matriks, cache, dan pemicu manual.

Konten teknis (SKILL.md asli)

Teks asli dari pembuat, dalam bahasa Inggris, langsung dari 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
Pertanyaan umum

Mengapa lint dijalankan sebelum build?

Pemeriksaan murah langsung gagal lebih awal, sehingga kesalahan sederhana ditemukan sebelum langkah yang lebih lambat berjalan.

Di mana rahasia disimpan?

Skill ini menyatakan rahasia harus berada di penyimpanan rahasia platform CI, bukan dalam berkas repositori atau log.

Apa itu build matriks?

Itu menjalankan job yang sama di beberapa versi atau platform, misalnya versi Node atau sistem operasi yang berbeda.

Detail

Deskripsi asli dari pembuat

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

repo: RightNow-AI/openfang

Popularitas

Bintang GitHub
18k
Peringkat
#10666
Lisensi
Apache-2.0
Diperbarui
2/7/2026

Apakah skill ini berguna?

0

Masuk untuk memberi suara.

Komentar

  • …

Skill lain dari repositori ini

Skill serupa