Skip to content

Phase 8: Deployment — generate IaC and CI/CD pipelines #3

@nakurian

Description

@nakurian

Problem

The framework stops at code review (Phase 7). There's no phase for:

  • Generating CI/CD pipelines (GitHub Actions, GitLab CI)
  • Infrastructure-as-Code (Terraform, CloudFormation, K8s manifests)
  • Environment-specific deployment configs
  • Database migration execution plans

Proposed solution

Add Phase 8: Deploy that generates deployment artifacts from specs and manifest:

8a. CI/CD Pipeline Generation

  • Generate pipeline config per service based on tech_stack.ci_cd in manifest
  • Include: lint → test → build → docker push → deploy stages
  • Generate pipeline for the planning repo itself (spec validation, contract checks)

8b. Infrastructure-as-Code

  • Generate K8s manifests / Helm charts from service definitions in manifest
  • Generate Terraform for cloud resources (databases, message brokers, caches)
  • Use the environments section in manifest to generate per-env configs

8c. Database Migration Plan

  • Coordinate migration order across services based on dependency graph
  • Generate a migration execution script respecting service dependencies

Output

  • phases/8-deploy.md — deployment plan and generated artifact locations
  • Per-service: ci/ directory with pipeline configs
  • Root-level: infrastructure/ directory with IaC

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions