Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 0 additions & 37 deletions .github/workflows/ci.yml

This file was deleted.

35 changes: 35 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Docs

on:
pull_request:
paths:
- "README.md"
- "docs/**"
- "blueprints/**"
- "compositions/**"
- "scripts/generate-readme.sh"
push:
branches:
- main
paths:
- "README.md"
- "docs/**"
- "blueprints/**"
- "compositions/**"
- "scripts/generate-readme.sh"

permissions:
contents: read

jobs:
docs-check:
name: Check generated catalog docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Make helper scripts executable
run: chmod +x scripts/*.sh

- name: Check composition docs
run: ./scripts/generate-readme.sh --check
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ jobs:
- name: Initialize orun workspace
uses: sourceplane/kiox-action@v2.1.2

- name: Make helper scripts executable
run: chmod +x scripts/*.sh

- name: Log in to GHCR
uses: docker/login-action@v3
with:
Expand All @@ -37,6 +40,9 @@ jobs:
test "${stack_version}" = "${tag_version}"
echo "STACK_VERSION=${stack_version}" >> "${GITHUB_ENV}"

- name: Verify catalog
run: ./scripts/verify.sh

- name: Publish OCI package
run: |
kiox -- orun publish ghcr.io/sourceplane/sumo-platform-ops-stack:${STACK_VERSION} \
Expand All @@ -55,3 +61,9 @@ jobs:
gh release create "${GITHUB_REF_NAME}" \
--title "${GITHUB_REF_NAME}" \
--generate-notes

- name: Upload registry index
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload "${GITHUB_REF_NAME}" registry/index.json --clobber

35 changes: 35 additions & 0 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Scorecard

on:
pull_request:
paths:
- "compositions/**"
- "blueprints/**"
- "registry/**"
- "scripts/score.sh"
- ".github/workflows/scorecard.yml"
push:
branches:
- main
paths:
- "compositions/**"
- "blueprints/**"
- "registry/**"
- "scripts/score.sh"
- ".github/workflows/scorecard.yml"

permissions:
contents: read

jobs:
scorecard:
name: Check generated scorecard
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Make helper scripts executable
run: chmod +x scripts/*.sh

- name: Check registry index
run: ./scripts/score.sh --check
29 changes: 29 additions & 0 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Verify

on:
pull_request:
push:
branches:
- main

permissions:
contents: read
packages: read

jobs:
verify-stack:
name: Verify stack catalog
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Initialize orun workspace
uses: sourceplane/kiox-action@v2.1.2

- name: Make helper scripts executable
run: chmod +x scripts/*.sh

- name: Verify catalog
run: ./scripts/verify.sh
102 changes: 75 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,86 @@
# sumo-platform-ops-stack
# Sumo Platform Ops Stack

Versioned OCI-hosted platform compositions for Sourceplane repos.
Versioned OCI catalog for reusable Orun compositions, blueprints, examples, and release metadata.

This repository is the source of truth for the packaged Orun stack consumed by platform repositories such as `example-platform-repo`. It publishes the composition package to GHCR and keeps execution contracts versioned independently from the application and infrastructure repos that use them.
This repository is the source of truth for the stack published to:

## Package layout
`oci://ghcr.io/sourceplane/sumo-platform-ops-stack:<version>`

The repository root is the composition package root:
## Use the OCI package in `intent.yaml`

- `stack.yaml` defines the exported stack metadata and OCI registry target
- `<type>/compositions.yaml` defines one `Composition` contract per component type
- `.github/workflows/ci.yml` validates the package on pull requests and pushes to `main`
- `.github/workflows/release.yml` publishes tagged releases to `ghcr.io/sourceplane/sumo-platform-ops-stack`
Pin the catalog as a composition source in the consumer repository:

## Exported composition types
```yaml
compositions:
sources:
- name: sumo-platform-ops
kind: oci
ref: oci://ghcr.io/sourceplane/sumo-platform-ops-stack:0.10.0
```

- `terraform`
- `helm-values`
- `helm-chart`
- `cloudflare-worker`
- `cloudflare-worker-turbo`
- `cloudflare-pages`
- `cloudflare-pages-turbo`
- `cloudflare-pages-terraform`
- `cloudflare-pages-turbo-terraform`
- `turbo-package`
- `workspace`
Keep the `orun` runtime pinned separately in `kiox.yaml`, then plan or run against that intent. The full consumer workflow is in [docs/using-this-stack-from-oci.md](docs/using-this-stack-from-oci.md).

## Releasing
## Catalog layout

1. Update `stack.yaml` with the next package version.
2. Merge the change to `main`.
3. Push a matching git tag in the form `vX.Y.Z`.
```text
sumo-platform-ops-stack/
├── stack.yaml
├── README.md
├── docs/
├── blueprints/
├── compositions/
├── examples/
├── scripts/
├── registry/
└── .github/workflows/
```

The release workflow validates that the git tag matches `stack.yaml`, then publishes the package to:
## Compositions

`oci://ghcr.io/sourceplane/sumo-platform-ops-stack:<version>`
| Composition | Category | Purpose |
| --- | --- | --- |
| `cloudflare-pages` | hosting | Direct-upload Cloudflare Pages delivery |
| `cloudflare-pages-turbo` | hosting | Pages delivery from pnpm and Turbo monorepos |
| `cloudflare-pages-terraform` | platform | Terraform-managed Cloudflare Pages projects |
| `cloudflare-pages-turbo-terraform` | platform | Monorepo Pages delivery plus Terraform reconciliation |
| `cloudflare-worker` | edge | Cloudflare Worker validation and deploy jobs |
| `cloudflare-worker-turbo` | edge | Worker delivery from pnpm and Turbo monorepos |
| `terraform` | infrastructure | Terraform fmt, init, and validate jobs |
| `helm-chart` | kubernetes | Helm chart verification |
| `helm-values` | kubernetes | Helm values validation |
| `turbo-package` | developer-experience | Shared package verification in Turbo workspaces |
| `workspace` | developer-experience | Workspace-backed provider smoke jobs |

Every composition now lives under `compositions/<name>/` so docs, examples, tests, and future registry metadata can grow beside the contract instead of around a flat root.

## Blueprints

| Blueprint | Uses | Focus |
| --- | --- | --- |
| `nextjs-cloudflare` | `workspace`, `turbo-package`, `cloudflare-pages-turbo`, `cloudflare-pages-terraform` | Edge-hosted Next.js monorepos with Terraform-managed Pages |
| `edge-worker-platform` | `workspace`, `terraform`, `cloudflare-worker`, `helm-values` | Worker-first delivery with infra and environment overlays |

## Trust signals

- `scripts/verify.sh` validates docs metadata and runs the stack OCI dry-run publish path.
- `scripts/score.sh` generates `registry/index.json` with maturity scores and grades.
- GitHub workflows split verification, docs checks, scorecard generation, and releases into separate pipelines.
- Current scores are intentionally conservative until each composition has runnable examples and deeper smoke coverage.

## Docs

- [Getting started](docs/getting-started.md)
- [Core concepts](docs/concepts.md)
- [Authoring guide](docs/authoring.md)
- [Verification model](docs/verification.md)
- [Roadmap](docs/roadmap.md)
- [Using this stack from OCI](docs/using-this-stack-from-oci.md)

## Release flow

1. Update `stack.yaml`.
2. Run `./scripts/verify.sh`.
3. Merge to `main`.
4. Push a matching tag like `v0.10.0`.

The release workflow publishes the OCI package, creates the GitHub release, and uploads the generated registry index.
16 changes: 16 additions & 0 deletions blueprints/edge-worker-platform/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# edge-worker-platform

Blueprint for worker-first services that still need shared infra validation and deploy-time overlays.

## Uses

- `workspace`
- `terraform`
- `cloudflare-worker`
- `helm-values`

## Good fit for

- API and edge routing services
- teams standardizing on Cloudflare Workers
- repos that keep infra and delivery config colocated
15 changes: 15 additions & 0 deletions blueprints/edge-worker-platform/blueprint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
apiVersion: catalog.orun.dev/v1alpha1
kind: Blueprint
metadata:
name: edge-worker-platform
spec:
summary: Edge-worker delivery with workspace verification, Terraform foundations, and deploy overlays.
uses:
- workspace
- terraform
- cloudflare-worker
- helm-values
outcomes:
- Worker validation and deployment
- Infra validation
- Environment configuration overlays
3 changes: 3 additions & 0 deletions blueprints/edge-worker-platform/examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# edge-worker-platform examples

Use the starter intent in `examples/monorepo-platform/` as the consumer-side starting point for this blueprint.
16 changes: 16 additions & 0 deletions blueprints/nextjs-cloudflare/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# nextjs-cloudflare

Opinionated blueprint for teams running a pnpm and Turbo monorepo with Cloudflare Pages managed through Terraform.

## Uses

- `workspace`
- `turbo-package`
- `cloudflare-pages-turbo`
- `cloudflare-pages-terraform`

## Good fit for

- frontend-heavy platform repos
- monorepo standardization
- teams that want Pages infrastructure managed declaratively
16 changes: 16 additions & 0 deletions blueprints/nextjs-cloudflare/blueprint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: catalog.orun.dev/v1alpha1
kind: Blueprint
metadata:
name: nextjs-cloudflare
spec:
summary: Next.js monorepo delivery on Cloudflare with Terraform-managed Pages resources.
uses:
- workspace
- turbo-package
- cloudflare-pages-turbo
- cloudflare-pages-terraform
outcomes:
- Shared workspace validation
- Monorepo package verification
- Git-backed Pages provisioning
- Edge-hosted frontend delivery
3 changes: 3 additions & 0 deletions blueprints/nextjs-cloudflare/examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# nextjs-cloudflare examples

Use the starter intent in `examples/simple-nextjs/` as the consumer-side entry point for this blueprint.
23 changes: 23 additions & 0 deletions compositions/cloudflare-pages-terraform/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# cloudflare-pages-terraform

`cloudflare-pages-terraform` is an exported Orun composition in the Sumo Platform Ops catalog.

## Purpose

Verify static site builds locally and reconcile a Git-backed Cloudflare Pages project with Terraform

## Contract

- **Type:** `cloudflare-pages-terraform`
- **Path:** `compositions/cloudflare-pages-terraform`
- **Definition:** `compositions.yaml`

## Catalog status

This folder is intentionally self-contained so examples, smoke coverage, and future registry metadata can live beside the composition contract.

## Next steps

- add runnable example assets under `examples/`
- add composition-specific smoke coverage under `tests/`
- keep the contract description in `compositions.yaml` aligned with the repo scorecard
5 changes: 5 additions & 0 deletions compositions/cloudflare-pages-terraform/examples/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Examples for cloudflare-pages-terraform

Put consumer-facing example assets for `cloudflare-pages-terraform` here.

The scorecard only counts example assets beyond this placeholder README.
5 changes: 5 additions & 0 deletions compositions/cloudflare-pages-terraform/tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Tests for cloudflare-pages-terraform

Put composition-specific smoke tests or validation fixtures for `cloudflare-pages-terraform` here.

The scorecard only counts test assets beyond this placeholder README.
Loading
Loading