返回顶部
C

CI-CD

Automate builds, tests, and deployments across web, mobile, and backend applications.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,749
下载量
3
收藏
概述
安装方式
版本历史

CI-CD

## When to Use Trigger on: automated deployment, continuous integration, pipeline setup, GitHub Actions, GitLab CI, build failing, deploy automatically, CI configuration, release automation. ## Platform Selection | Stack | Recommended | Why | |-------|-------------|-----| | Web (Next.js, Nuxt, static) | Vercel, Netlify | Zero-config, auto-deploys, preview URLs | | Mobile (iOS/Android/Flutter) | Codemagic, Bitrise + Fastlane | Pre-configured signing, app store upload | | Backend/Docker | GitHub Actions, GitLab CI | Full control, self-hosted runners option | | Monorepo | Nx/Turborepo + GHA | Affected detection, build caching | **Decision tree:** If platform handles deploy automatically (Vercel, Netlify) → skip custom CI. Only add GitHub Actions when you need tests, custom builds, or deploy to your own infra. ## Quick Start Templates For copy-paste workflows, see `templates.md`. ## Common Pipeline Pitfalls | Mistake | Impact | Fix | |---------|--------|-----| | Using `latest` image tags | Builds break randomly | Pin versions: `node:20.11.0` | | Not caching dependencies | +5-10 min per build | Cache `node_modules`, `.next/cache` | | Secrets in workflow files | Leaked in logs/PRs | Use platform secrets, OIDC for cloud | | Missing `timeout-minutes` | Stuck jobs burn budget | Always set: `timeout-minutes: 15` | | No `concurrency` control | Redundant runs on rapid pushes | Group by branch/PR | | Building on every push | Wasted resources | Build on push to main, test on PRs | ## Mobile-Specific: Code Signing The #1 pain point. iOS requires certificates + provisioning profiles. Android requires keystores. **The fix:** Use **Fastlane Match** — stores certs/profiles in git repo, syncs across team and CI. ```bash # One-time setup fastlane match init fastlane match appstore # In CI fastlane match appstore --readonly ``` For detailed mobile CI/CD patterns (iOS, Android, Flutter), see `mobile.md`. ## Web-Specific: Build Caching Next.js/Nuxt builds are slow without cache. The `No Cache Detected` warning = full rebuild. ```yaml # GitHub Actions: persist Next.js cache - uses: actions/cache@v4 with: path: .next/cache key: nextjs-${{ hashFiles('**/package-lock.json') }} ``` For framework-specific configs, see `web.md`. ## Debugging Failed Builds | Error Pattern | Likely Cause | Check | |---------------|--------------|-------| | Works locally, fails in CI | Environment drift | Node version, env vars, OS | | Intermittent failures | Flaky tests, resource limits | Retry logic, increase timeout | | `ENOENT` / file not found | Build order, missing artifact | Check `needs:` dependencies | | Exit code 137 | Out of memory | Use larger runner or optimize | | Certificate/signing errors | Expired or mismatched creds | Regenerate with Match/Fastlane | ## What This Doesn't Cover - Container orchestration (Kubernetes) → see `k8s` skill - Server configuration → see `server` skill - Monitoring and observability → see `monitoring` skill

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 ci-cd-1776419965 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 ci-cd-1776419965 技能

通过命令行安装

skillhub install ci-cd-1776419965

下载 Zip 包

⬇ 下载 CI-CD v1.0.0

文件大小: 6.13 KB | 发布时间: 2026-4-17 20:00

v1.0.0 最新 2026-4-17 20:00
Initial release

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部