Skip to content

Deployment Workflow

Understanding the deployment process.

Process

Coming soon.

mermaid
sequenceDiagram
    actor Dev as Developer
    participant GH as GitHub
    participant GHA as GitHub Actions
    participant TF as Terraform
    participant CF as Cloudflare API
    participant WR as Wrangler
    participant APP as Cloudflare Workers App
    participant VER as Verification Checks

    Dev->>GH: git push / open PR
    GH-->>GHA: Trigger CI/CD workflow

    %% CI: tests & checks
    GHA->>GHA: Checkout code & run tests\n(linting, unit tests, etc.)

    %% IaC: Terraform
    GHA->>TF: Run terraform init / plan / apply
    TF->>CF: Provision Cloudflare environments
    CF-->>TF: Infrastructure updated
    TF-->>GHA: Terraform step complete

    %% Deploy: Wrangler
    GHA->>WR: Invoke wrangler deploy
    WR->>CF: Upload and deploy Worker\n& related assets
    CF-->>APP: New application version active
    WR-->>GHA: Deployment successful

    %% Post-deploy verification
    GHA->>VER: Run smoke / health checks
    VER->>APP: Call public endpoints\n& status checks
    APP-->>VER: Responses OK
    VER-->>GHA: All checks passed

    %% Final status
    GHA-->>Dev: Report successful deployment

Released under the MIT License.