Deployment cicd
Deployment and CI/CD patterns - Docker, GitHub Actions, pipelines, infrastructure. Auto-loaded when working with deployment configs, workflows, or container files.From its SKILL.md
npx -y skills add littlelingo/context-engine --skill deployment-cicdAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
1.5 KB, as published. Nobody here has run it
Deployment & CI/CD
Docker
- Multi-stage builds to minimize image size
- Pin base image versions (e.g.,
node:20.11-bookworm, notnode:latest) - Non-root user in production containers
.dockerignoremirrors.gitignoreplusnode_modules,.git,.env- Health checks in docker-compose and Dockerfile
GitHub Actions
- Cache dependencies (
actions/cache) to speed up builds - Use matrix builds for multi-version testing
- Pin action versions to SHA, not tags (
actions/checkout@v4-> SHA) - Secrets via repository settings, never hardcoded
- Fail fast on lint/type-check before running expensive tests
Pipeline Structure
lint -> type-check -> unit-tests -> build -> integration-tests -> deploy
- Each stage gates the next
- Lint and type-check are cheap - run them first
- Deploy only from main/release branches
Environment Promotion
- dev -> staging -> production (never skip staging)
- Same Docker image promoted between environments (different config only)
- Feature flags for gradual rollout
- Rollback plan before every production deploy
Common Pitfalls
- Secrets in Docker build args (visible in image history)
- Running
npm installinstead ofnpm ciin CI - Missing
.dockerignore- copyingnode_modulesinto build context - No health check endpoint for container orchestrators