[Open-source] A lightweight, self-hosted CI/CD + deployment + operations integration platform
![[Open-source] A lightweight, self-hosted CI/CD + deployment + operations integration platform](https://yy123.ink/api/img/1796366011228-e0q5kq.png)
1. Project Overview
Pipewright
A lightweight, self-hosted CI/CD + deployment + operations platform.A single Go static binary (embedded frontend, zero dependencies at runtime), a tool to replace the "CI + Ansible/Kamal + Portainer" three-piece set.
2. Open Source License
Licensed under MIT
3. Screenshots
Interface Preview
Global Overview—— Project, success rate, environment deployment status, server health, DORA indicators, all on one screen:
4. Feature Overview
Why Pipewright
Mainstream schemes are either heavy (Jenkins with many plugins + JVM) or three tools assembled (Woodpecker/Drone + Ansible/Kamal + Portainer). Pipewright puts "continuous integration, multi-server deployment, server/container operations" intoa static binary: download, start, open the browser, and that's the entire installation process.
It has surpassed the three-piece set: deploying services with HTTPS domain names (the original nginx + certbot step), and giving each PR a clickable preview address, are all built-in.
|
|
Pipewright |
Jenkins |
Drone + Ansible + Portainer |
| Single-binary deployment |
✅ |
❌ JVM + plugins |
❌ Three-piece assembly |
| Visual pipeline composition (DAG) |
✅ Built-in canvas |
Plugin |
YAML handwritten |
| Pipeline as code (evolving by branch) |
✅ |
Plugin |
✅ |
| Isolated build |
✅ |
✅ |
✅ |
| Multi-server deployment (SSH + Kubernetes, agent-free) |
✅ Built-in |
Plugin |
Ansible |
| Server / Container Operations |
✅ Built-in |
❌ |
Portainer |
| Zero Downtime + Rollback on Failure |
✅ |
Plugin |
Self-written |
| Automatic HTTPS + Domain Reverse Proxy |
✅ Built-in |
❌ |
❌ |
| Preview Environment per PR |
✅ Built-in |
❌ |
❌ |
| DORA Metrics |
✅ Built-in |
Plugin |
❌ |
| AI Failure Diagnosis |
✅ Optional |
❌ |
❌ |
| One-click Self-update |
✅ |
❌ |
❌ |
5. Tech Stack
Architecture
One process, approximately 49 packages. internal/httpapi is the only package that interacts with HTTP, and all domain packages are injected into it; the assembly layer is divided by domain in internal/app/*.go,The call order of Boot is the assembly order(The adapter is bound late within the package to maintain one-way dependencies between packages), cmd/pipewright/main.go only handles switching the flow and process termination. The assembly order, layer restrictions, and the list of places that must be modified together can be found in docs/architecture.md's "Increment: Assembly Layer and Layer Discipline (v1.13)".
Single Static Binary (cmd/pipewright)│├─ Foundation│ ├── internal/config envConfiguration + Master Key Loading│ ├── internal/store Open database + migration (sqlite / mysql dual-language)│ ├── internal/auth Authentication + Session + CSRF│ ├── internal/vault Encrypted Credentials Vault (secretbox)│ ├── internal/oauth OAuth Application Integration → Token Stored in Vault Credentials│ ├── internal/audit Append-only Audit + Optional Remote Sink│ ├── internal/mask Secret Masking (Logs / Diagnosis / Notifications)│ ├── internal/netguard Outbound Target Address Validation (SSRF Bypass, notify / webhook shared)│ ├── internal/i18n Server-side Localization for User-Visible Information│ └── internal/version Version Check + One-click Self-update│├─ Pipeline│ ├── internal/project Project Integration + Repository Detection│ ├── internal/pipeline Pipeline spec + Build/Deploy configuration + Validation│ ├── internal/pipelineyaml YAML ↔ spec Bi-directional conversion (Import / Export)│ ├── internal/pacloader Pipeline as Code loader (.pipewright.yml, per branch)│ ├── internal/library Reusable templates + Variable groups + Custom nodes│ ├── internal/trigger Webhook + Branch→Environment mapping│ ├── internal/cron 5-field cron parser + Minute-level scheduler│ └── internal/chain Upstream→Downstream chaining (Anti-cycles)│├─ Execution│ ├── internal/run Run model + Worker pool + Logs + Artifacts + Parameters│ ├── internal/dag Pure DAG scheduler kernel (Zero I/O)│ ├── internal/dagrun DAG run orchestration (Stage-level + Task-level, Matrix expansion)│ ├── internal/build Containerized isolated build + Image + Stage executor│ ├── internal/runner Per-project remote build machine configuration│ ├── internal/repocache Code management zone (Local bare image + Incremental fetch)│ ├── internal/buildcache Build dependency cache (Branch + Lockfile addressing)│ ├── internal/artifactstore Content-addressed artifact byte store│ ├── internal/testreport JUnit + Cobertura + Security report (SARIF / Trivy / Gitleaks / ZAP)+ Issue report (Checkstyle / PMD / ESLint / Ruff / golangci-lint / SonarQube / gosec / ShellCheck / hadolint)+ Metric report (jscpd JSON / gocyclo text / SonarQube measures: Duplication rate / Cyclomatic complexity)│ ├── internal/qualitygate Pure quality gate assessment│ ├── internal/approval Manual approval gate (Coordinator + Persistence)│ └── internal/retention Run data retention cleanup│├─ Delivery│ ├── internal/target Target layer: SSH / Session + Kubernetes (kubeconfig, pure Go REST client)exec/session + Kubernetes(kubeconfig, pure Go REST client)│ ├── internal/deploy Deployment execution (SSH + k8s image rolling update) + Health gate + Rollback│ ├── internal/environments Environment first-class citizen + Rollback target location│ ├── internal/promotion Environment promotion flow + Per-environment variables│ ├── internal/prstatus PR / Commit status writeback (GitHub / Gitee / GitLab)│ ├── internal/proxy Automatic HTTPS + Domain reverse proxy (Caddy orchestration)│ ├── internal/dnsprovider Cloudflare / DNSPod / Aliyun DNS (DNS-01 + Subdomain)│ └── internal/previewenv Per-PR preview environment + automatic reclaim│├─ observable│ ├── internal/notify Multi-channel notification + event routing + template (human-oriented)│ ├── internal/webhook Outbound webhook subscription: HMAC signature + exponential backoff + delivery log (machine-oriented)│ ├── internal/anomaly Configurable threshold detection + alert│ ├── internal/metrics Server metrics time series (trend chart)│ ├── internal/dora DORA metrics + performance grading│ └── internal/ai Optional AI: diagnosis / repository analysis / diff / risk annotation│├── internal/httpapi Unique external HTTP interface (approximately 188 routes)└── web/ Vue3 frontend (go:embed embedded)
6. Source Code Repository
Open-source project address:
https://gitee.com/Adnois/pipewright
Next steps