ci: register the Cloud VM image bake for dispatch

Merged
TE
1mo ago
+51-0

Summary

.github/workflows/cloud-vm-image-bake.yml exists only on feat-cmux-next. GitHub dispatches only workflows the default branch registers, so the bake returns 404 from any ref, and development bakes have needed a personal Freestyle key on an operator's laptop (plans/cmux-next/vm-image.md 4.11, "Operator bake").

This adds an inert registration on main with the same inputs, following the precedent of cmux-next-regenerate-bundles.yml (#18153). A dispatch runs the workflow file at --ref, so the feat-cmux-next implementation runs:

gh workflow run cloud-vm-image-bake.yml -R manaflow-ai/cmux --ref feat-cmux-next -f mode=bake

The cmux-next-vm-image-dev environment (secret FREESTYLE_API_KEY) allows deployments only from the branch feat-cmux-next (custom branch policy), so a dispatch with --ref feat-cmux-next can use the secret. A dispatch from any other ref is refused at the environment gate. The stub on main has permissions: {}, uses no environment or secret, and only echoes.

Testing

  • actionlint .github/workflows/cloud-vm-image-bake.yml: clean.
  • Workflow guard tests (fork runner routing, guards wired) run in this PR's CI.
  • The workflow was not dispatched; nothing was baked.

No capture: CI workflow registration only

Changelog

none

🤖 Generated with Claude Code
Agent session: cosmic-gray


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.


Summary by cubic

Registers the Cloud VM image bake on main so GitHub Actions can dispatch the implementation from feat-cmux-next instead of returning 404. The main workflow is an inert stub with no permissions or secrets; dispatching with --ref feat-cmux-next runs that branch’s implementation.

Summary by CodeRabbit

  • New Features
    • Added a workflow for manually baking Cloud VM images.
    • Supports image baking and reproducibility modes, with configurable clone counts, snapshot retention, probe settings, and agent-tool options.
    • Provides automated runner selection for image-baking jobs.
    • The workflow is currently available for dispatch from the feat-cmux-next branch.