بنقرة واحدة
ci-cd-helper
CI/CD pipeline optimization, build failures, and deployment automation for DevOps workflows.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
CI/CD pipeline optimization, build failures, and deployment automation for DevOps workflows.
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
PersonalOS skill: account-management
API endpoint testing, mocking, and integration testing for robust API development.
Optimize images, icons, and design assets for performance, quality, and developer handoff
Plan, track, and optimize budgets to maximize value and financial performance
Code quality improvement, technical debt reduction, and refactoring patterns for maintainable software.
Comprehensive code review with quality checks, best practices, and actionable feedback
| name | ci-cd-helper |
| description | CI/CD pipeline optimization, build failures, and deployment automation for DevOps workflows. |
CI/CD pipeline optimization, build failures, and deployment automation strategies.
Guides you through setting up and optimizing CI/CD pipelines for automated testing and deployment.
Pipeline Stages:
1. Checkout Code
2. Install Dependencies
3. Lint Code
4. Run Tests
5. Build Artifact
6. Security Scan
7. Deploy to Staging
8. Run Integration Tests
9. Deploy to Production
10. Verify Deployment
GitHub Actions Example:
name: CI/CD Pipeline
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests
run: pytest
build:
needs: test
runs-on: ubuntu-latest
steps:
- name: Build Docker image
run: docker build -t myapp .
deploy:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Deploy to production
run: kubectl apply -f k8s/
Common Failure Patterns:
Debugging Steps:
# Run pipeline locally
docker-compose run ci
# Check logs
kubectl logs <pod-name>
# SSH into build environment
docker exec -it <container-id> bash
Optimization Strategies:
Dependency Caching:
- name: Cache pip packages
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
Matrix Builds:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: [3.8, 3.9, '3.10']
Blue-Green Deployment:
- name: Deploy to green
run: kubectl apply -f k8s/green-deployment.yaml
- name: Verify green
run: ./health-check.sh https://green.example.com
- name: Switch traffic
run: kubectl patch service myapp -p '{"spec":{"selector":{"version":"green"}}}'
Analyze Past Failures:
def predict_build_failure(repo):
"""Predict likelihood of build failure"""
recent_changes = get_recent_commits(repo)
test_history = get_test_history(repo)
complexity_metrics = calculate_complexity(repo)
risk_score = calculate_risk(recent_changes, test_history, complexity_metrics)
return risk_score
Metrics Dashboard:
Do:
Don't: