feat: add Woodpecker CI + Gitea deployment templates

- .woodpecker.yml: full pipeline template (install → lint-fix → lint → test → deploy)
- scripts/setup-project.sh: one-command VPS setup (user, dir, deploy, sudoers, systemd, nginx)
- scripts/deploy.sh: deploy script template (rsync + npm ci + systemctl + health check)
- scripts/ci-lint-fix.sh: ESLint auto-fix with [CI SKIP] commit-back
- docs/ci-cd.md: complete CI/CD documentation and troubleshooting
- .env.example: added WOODPECKER_TOKEN
- DOCS.md: added CI/CD section

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
olekhondera
2026-02-20 23:24:41 +02:00
parent f5009636a0
commit 425227c6b8
7 changed files with 557 additions and 3 deletions

View File

@@ -31,6 +31,10 @@ NODE_ENV=development
# --- Email ---
# RESEND_API_KEY=
# --- CI/CD (Woodpecker) ---
# WOODPECKER_TOKEN=
# WOODPECKER_URL=https://ci.spektr.design
# --- File Storage ---
# S3_BUCKET=
# S3_REGION=