muster ci
Generate CI config, list the secrets a CI deploy needs, and run muster inside CI.
Synopsis
Terminal
muster ci <command> [flags]Subcommands
| Subcommand | Description |
|---|---|
init github | Write .github/workflows/muster-deploy.yml (shows it first). |
init gitlab | Write .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
| Flag | Description |
|---|---|
--yes, -y | Write the file without asking. |
--force | Overwrite an existing file. |
--stdout | Only print the file. |
--branch B | Deploy on push to B (default: main). |
--environment E | GitHub environment for the deploy job (default: production). |
--action-ref R | Muster-dev/muster action ref (default: v0). |
run
| Flag | Description |
|---|---|
--services "a b" | Services, space or comma separated (default: all). |
--server NAME | Fleet server (fleet-* commands; deploy becomes fleet-deploy). |
--group NAME | Fleet group (fleet-* commands; deploy becomes fleet-deploy). |
--dry-run | Plan only. |
--stop-on-failure | Stop at the first failed service. |
--from SVC | Resume from SVC in deploy order. |
--approve-hooks | Approve the repo's hooks on this runner (--yes). |
--explain-on-failure | Add muster explain --json for the first failure. |
--events FILE | Keep 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-failureExit 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.