How ahlbertng/swiftdeploy works
SwiftDeploy is a deployment-automation CLI paired with a FastAPI service. The main workflow loads a manifest, checks policy, renders deployment configuration, deploys the service, verifies health, and records events; status, promotion, and audit provide distinct operational workflows. The README documents CLI capabilities and their relationships, but the CLI source was not excerpted, so its internal implementation is represented at the documented entry point rather than inferred in detail.
Main entry points: swiftdeploy SwiftDeploy CLI · main.py FastAPI service · templates Configuration generation · manifest.yaml Deployment manifest
Components 17
Deployment workflow
- SwiftDeploy CLI
swiftdeploy - Deployment manifest
manifest.yaml - Configuration generation
templates - Docker Compose
- Health verification
swiftdeploy
Policy controls
- OPA evaluation
- Policy rules
policies
Operations and audit
- Status dashboard
swiftdeploy - Canary promotion
swiftdeploy - Event history
swiftdeploy - History log
- Audit report
swiftdeploy - Audit output
Application service
- FastAPI service
app/main.py - Service metrics
app/main.py - Chaos controls
app/main.py
Other components
- Operator
Connections 23
- Operator → SwiftDeploy CLI: runs commands
README.md - SwiftDeploy CLI → Deployment manifest: loads configuration
README.md - SwiftDeploy CLI → Configuration generation: renders configuration
README.md - Configuration generation → Docker Compose: generates Compose
README.md - SwiftDeploy CLI → OPA evaluation: checks policies
README.md - OPA evaluation → Policy rules: evaluates rules
- SwiftDeploy CLI → Docker Compose: deploys stack
README.md - Docker Compose → FastAPI service: runs service
README.md - SwiftDeploy CLI → Health verification: verifies health
README.md - Health verification → FastAPI service: checks /healthz
README.md - SwiftDeploy CLI → Status dashboard: runs status
README.md - Status dashboard → Service metrics: scrapes metrics
README.md - Service metrics → FastAPI service: exposes /metrics
README.md - Status dashboard → OPA evaluation: queries policies
README.md - SwiftDeploy CLI → Canary promotion: runs promotion
README.md - Canary promotion → Service metrics: scrapes metrics
README.md - Canary promotion → OPA evaluation: checks canary
README.md - SwiftDeploy CLI → Event history: records events
README.md - Event history → History log: appends events
README.md - Audit report → History log: reads events
README.md - Audit report → Audit output: writes report
README.md - FastAPI service → Service metrics: updates metrics
app/main.py - Chaos controls → FastAPI service: injects failures
app/main.py