This commit is contained in:
12
README.md
12
README.md
@@ -104,10 +104,8 @@ mifi-ventures-landing/
|
||||
│ ├── devcontainer.json # Dev container config (extensions)
|
||||
│ └── Dockerfile # Dev container image (Node)
|
||||
├── .woodpecker/ # CI/CD pipelines (see below)
|
||||
│ ├── lint.yaml # install + lint (runs on PR, main, manual)
|
||||
│ ├── build.yaml # build (after lint)
|
||||
│ ├── test.yaml # test (after lint + build)
|
||||
│ └── deploy.yaml # Docker → push → webhook (main only, after lint/build/test)
|
||||
│ ├── ci.yaml # one clone/workspace: install → lint → build → test
|
||||
│ └── deploy.yaml # Docker → push → webhook (main only, after ci)
|
||||
├── Dockerfile # Production container (nginx:alpine)
|
||||
├── nginx.conf # nginx web server configuration
|
||||
├── svelte.config.js # SvelteKit config (adapter-static)
|
||||
@@ -142,10 +140,10 @@ mifi-ventures-landing/
|
||||
|
||||
### Pipeline Overview
|
||||
|
||||
Woodpecker uses four workflows (`.woodpecker/lint.yaml`, `build.yaml`, `test.yaml`, `deploy.yaml`):
|
||||
Woodpecker uses two workflows (`.woodpecker/ci.yaml`, `deploy.yaml`):
|
||||
|
||||
- **Pull requests** (and **push/tag/manual on main**): Run **lint** → **build** → **test** in order (shared workspace). No Docker or deploy on PRs.
|
||||
- **Push to main** (or tag / manual on main): After lint, build, and test succeed, **deploy** runs:
|
||||
- **Pull requests** (and **push/tag/manual on main**): **ci** runs install → lint → build → test in one workspace (one clone, one install). No Docker or deploy on PRs.
|
||||
- **Push to main** (or tag / manual on main): After ci succeeds, **deploy** runs:
|
||||
1. **Build** — Builds Docker image tagged with commit SHA + `latest`
|
||||
|
||||
2. **Push** — Pushes images to private Docker registry
|
||||
|
||||
Reference in New Issue
Block a user