CI/CDパイプラインは、コミットからデプロイメントまで、コードが通過する自動化されたステージの連続です。通常、ビルド、テスト、デプロイステップを含みます。これはコード変更をデプロイされたリリースに変えるための自動化されたパスを定義します。
パイプラインの概念
A PIPELINE is an automated workflow of STAGES that run in sequence on each code change:
→ triggered by an event (a push, a PR, a merge, a schedule)
→ each stage runs automatically; if a stage FAILS, the pipeline STOPS (broken code
doesn't proceed to later stages or production)
→ provides automation, consistency, and fast feedback
典型的なパイプラインステージ
1. SOURCE → triggered by a code change (checkout the code)
2. BUILD → compile the code, install dependencies, build artifacts/images
3. TEST → run automated tests (unit, integration), linting, static analysis
4. (SECURITY) → security scans (dependencies, code, container images)
5. PACKAGE → create deployable artifacts (e.g. a Docker image pushed to a registry)
6. DEPLOY to STAGING → deploy to a test/staging environment; run further tests (e2e)
7. DEPLOY to PRODUCTION → release to production (manual approval for delivery, or
automatic for deployment)
→ Each stage gates the next: failures stop the pipeline (quality gates).
