muster ci

muster ci

Generate CI config, list the secrets a CI deploy needs, and run muster inside CI.

Synopsis

Terminal
muster ci <command> [flags]

Subcommands

SubcommandDescription
init githubWrite .github/workflows/muster-deploy.yml (shows it first).
init gitlabWrite .gitlab-ci.yml (shows it first).
env [--json]List the secrets and env vars a CI deploy needs.
run <command>Run a command for CI (grouped logs, summary, outputs): deploy, rollback, restart, status, fleet-deploy, fleet-rollback, fleet-restart, fleet-status.

Flags

init

FlagDescription
--yes, -yWrite the file without asking.
--forceOverwrite an existing file.
--stdoutOnly print the file.
--branch BDeploy on push to B (default: main).
--environment EGitHub environment for the deploy job (default: production).
--action-ref RMuster-dev/muster action ref (default: v0).

run

FlagDescription
--services "a b"Services, space or comma separated (default: all).
--server NAMEFleet server (fleet-* commands; deploy becomes fleet-deploy).
--group NAMEFleet group (fleet-* commands; deploy becomes fleet-deploy).
--dry-runPlan only.
--stop-on-failureStop at the first failed service.
--from SVCResume from SVC in deploy order.
--approve-hooksApprove the repo's hooks on this runner (--yes).
--explain-on-failureAdd muster explain --json for the first failure.
--events FILEKeep the raw NDJSON events here.
--args "…"Extra arguments for the muster command.

Examples

Terminal
muster ci init github --yes
muster ci env
muster ci run deploy --services "api web" --approve-hooks --explain-on-failure

Exit codes and JSON

ci run exits with the command's exit code. It writes $GITHUB_OUTPUT (result, deployed, failed, summary-json, duration), $GITHUB_STEP_SUMMARY and ::error annotations when they exist; elsewhere it prints the summary.