Configure CI/CD pipeline with automated testing, security scanning, and deployment automation
Automates CI/CD pipeline setup with testing, security scanning, and deployment. Use when establishing automated build, test, and deploy workflows for new or existing projects.
/plugin marketplace add seth-schultz/orchestr8/plugin install orchestr8@orchestr8Request: $ARGUMENTS
CRITICAL: All orchestr8:// URIs in this workflow must be loaded using ReadMcpResourceTool with server: "plugin:orchestr8:orchestr8-resources" and the uri parameter set to the resource URI shown.
For detailed instructions and examples, load: orchestr8://guides/mcp-resource-loading
You are the DevOps Engineer responsible for establishing a comprehensive CI/CD pipeline with automated testing, security scanning, build automation, and deployment orchestration.
→ Load: orchestr8://workflows/workflow-setup-cicd
Activities:
→ Checkpoint: CI/CD plan approved, platform selected
→ Load: orchestr8://match?query=cicd+build+automation+testing&categories=guide,skill&mode=index&maxResults=8
Activities:
Build Automation:
Test Automation:
Code Quality:
→ Checkpoint: Build pipeline functional with automated testing
→ Load: orchestr8://match?query=security+scanning+code+quality+cicd&categories=skill,guide&mode=index&maxResults=8
Activities:
Security Scanning:
Quality Gates:
Secrets Management:
→ Checkpoint: Security scanning and quality gates active
→ Load: orchestr8://match?query=deployment+automation+infrastructure+monitoring&categories=guide,pattern&mode=index&maxResults=8
Activities:
Deployment Configuration:
Environment Management:
Monitoring & Observability:
Documentation:
→ Checkpoint: Full CI/CD pipeline operational
- Checkout code
- Install dependencies
- Lint and format check
- Build artifacts
- Cache dependencies
- Run unit tests
- Run integration tests
- Run E2E tests
- Generate coverage report
- Upload test results
- SAST scanning
- Dependency scanning
- Secret detection
- Container scanning
- License compliance
- Check test coverage >80%
- Check code quality scores
- Verify no critical vulnerabilities
- Require approvals
- Check branch protection
- Deploy to staging
- Run smoke tests
- Validate deployment
- Manual approval gate
- Create backup
- Run migrations
- Deploy application
- Run health checks
- Monitor metrics
- Send notifications
name: CI/CD Pipeline
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm ci
- run: npm run lint
- run: npm run build
test:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- run: npm ci
- run: npm test
- run: npm run test:coverage
security:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: snyk/actions/node@master
deploy-staging:
needs: [test, security]
if: github.ref == 'refs/heads/develop'
runs-on: ubuntu-latest
steps:
- name: Deploy to Staging
run: ./scripts/deploy-staging.sh
✅ Keep pipelines fast (<10 minutes) ✅ Fail fast (run quick checks first) ✅ Cache dependencies ✅ Parallelize independent jobs ✅ Use matrix strategies for multi-platform testing
✅ Never commit secrets ✅ Use secret management systems ✅ Scan for vulnerabilities automatically ✅ Enforce code review before merge ✅ Sign commits and artifacts
✅ Automate everything ✅ Use infrastructure as code ✅ Implement gradual rollouts ✅ Have rollback automation ✅ Monitor deployments actively
✅ Keep dependencies updated ✅ Monitor pipeline performance ✅ Document procedures ✅ Train team on usage ✅ Continuously improve
✅ CI/CD platform configured and operational ✅ Build automation functional ✅ Automated testing integrated ✅ Test coverage reporting active ✅ Code quality gates enforced ✅ Security scanning automated ✅ Dependency vulnerability checks active ✅ Secrets management configured securely ✅ Staging deployment automated ✅ Production deployment automated with gates ✅ Health checks configured ✅ Monitoring and alerting active ✅ Rollback procedures documented and tested ✅ Team trained on pipeline usage ✅ Documentation complete and accessible