Skip to content

Channel Pack GitOps

roto31 edited this page Nov 24, 2026 · 1 revision

Channel pack GitOps

Hybrid GitOps for compiled StreamTV channels: YAML in private git is desired state; apply on the production Mac reconciles DB + soft-deploy + Plex guide. Channel Creator MCP remains the authoring UX.

Scope: private source repo only. Channel inventory packs must not ship to the public StreamTV tree.

flowchart TD
  MCP["MCP channel_build PASS"] --> Promote["Promote → tracked channel YAML"]
  Promote --> PR["Private PR + offline validate"]
  PR --> Apply["apply_channel_pack.sh on production"]
  Apply --> V["validate"]
  V --> Imp["import"]
  Imp --> Soft["soft deploy --channel N"]
  Soft --> Guide["Plex guide reload"]
  Guide --> Smoke["lineup smoke"]
Loading

Validate / apply

./venv/bin/python scripts/validate_channel_pack.py \
  --channel-yaml data/channels_${N}_${SLUG}.yaml \
  --schedule schedules/${N}.yml

bash scripts/apply_channel_pack.sh \
  --channel-yaml data/channels_${N}_${SLUG}.yaml \
  --schedule schedules/${N}.yml \
  --number "${N}"

Use full kickstart only for streamtv/ module or LaunchAgent env changes — not for YAML pack apply (Soft deploy).

Canonical: CHANNEL_PACK_GITOPS.md · Channel-Creator-MCP · Import vs Builder.

Clone this wiki locally