[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M757Y948WYGPC5R038JMPDGF":3,"skill-same:01M757Y948WYGPC5R038JMPDGF":61},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":38,"commitSha":39,"skillDirectory":40,"forksCount":41,"repositoryHtmlUrl":42,"repositoryHomepageUrl":43,"ownerHtmlUrl":44,"ownerBlogUrl":6,"ownerDescription":45,"updatedAt":46,"install":47,"resources":60},"01M757Y948WYGPC5R038JMPDGF","ci-cd-pipeline",null,"CI\u002FCD pipeline configuration patterns: GitHub Actions, multi-stage builds, testing matrices, deployment workflows, secrets management, caching strategies, and pipeline optimization.","lukemcqueen\u002Fsteadfaste-fleet","lukemcqueen","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F405240?v=4","01M757MHPAGRXTJAT46SKZP98R","Luke McQueen","01M757MHPZ573KP8DT9GB8SBQ7",4,"MIT","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fci-cd-pipeline\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: ci-cd-pipeline\nversion: 1.0.0\ncategory: devops\ndescription: >\n  CI\u002FCD pipeline configuration patterns: GitHub Actions, multi-stage\n  builds, testing matrices, deployment workflows, secrets management,\n  caching strategies, and pipeline optimization.\ntags: [ci, cd, github-actions, deployment, automation]\nrelated_skills: [github-pr-workflow, test-driven-development, nextjs-docker-multistage, nginx-web-app-deployment]\n---\n\n# CI\u002FCD Pipeline Patterns\n\n## When to Use\n\nLoad this skill when:\n- Setting up CI for a new project\n- Adding deployment automation\n- Optimizing slow CI pipelines\n- Reviewing pipeline configurations\n- Debugging a failing CI run\n\n## Core Principles\n\n### 1. Pipeline Structure\n\nEvery CI\u002FCD pipeline follows this flow:\n\n```\n[Commit\u002FPush] → [Lint] → [Test] → [Build] → [Deploy\u002Fstaging] → [Deploy\u002Fprod]\n                                                          ↕\n                                                    [Integration tests]\n```\n\n**Separation of concerns:** Each phase is an independent job. A phase failure\nstops downstream phases but doesn't block parallel phases.\n\n### 2. GitHub Actions — Standard Layout\n\n```yaml\nname: CI\n\non:\n  push:\n    branches: [main, develop]\n  pull_request:\n    branches: [main]\n\nenv:\n  PYTHON_VERSION: \"3.12\"\n  NODE_VERSION: \"20\"\n\njobs:\n  lint:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-python@v5\n        with:\n          python-version: ${{ env.PYTHON_VERSION }}\n      - run: pip install ruff\n      - run: ruff check .\n\n  test:\n    needs: lint\n    runs-on: ubuntu-latest\n    services:\n      postgres:\n        image: postgres:16\n        env:\n          POSTGRES_PASSWORD: testpass\n        ports:\n          - 5432:5432\n        options: >-\n          --health-cmd pg_isready\n          --health-interval 10s\n          --health-timeout 5s\n          --health-retries 5\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-python@v5\n        with:\n          python-version: ${{ env.PYTHON_VERSION }}\n      - name: Cache dependencies\n        uses: actions\u002Fcache@v4\n        with:\n          path: ~\u002F.cache\u002Fpip\n          key: ${{ runner.os }}-pip-${{ hashFiles('**\u002Frequirements*.txt') }}\n          restore-keys: |\n            ${{ runner.os }}-pip-\n      - run: pip install -r requirements-dev.txt\n      - run: pytest --cov=.\u002F --cov-report=xml\n      - uses: codecov\u002Fcodecov-action@v4\n        with:\n          file: .\u002Fcoverage.xml\n\n  build:\n    needs: test\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - run: docker build -t myapp:${{ github.sha }} .\n      - run: docker tag myapp:${{ github.sha }} myapp:latest\n\n  deploy-staging:\n    needs: build\n    if: github.ref == 'refs\u002Fheads\u002Fmain'\n    runs-on: ubuntu-latest\n    environment: staging\n    steps:\n      - name: Deploy to staging\n        run: |\n          echo \"Deploying ${{ github.sha }} to staging...\"\n          # ssh, rsync, or kubectl commands\n\n  deploy-production:\n    needs: deploy-staging\n    if: github.ref == 'refs\u002Fheads\u002Fmain' && github.event_name == 'push'\n    runs-on: ubuntu-latest\n    environment: production\n    concurrency: production-deploy  # Prevents concurrent deploys\n    steps:\n      - name: Deploy to production\n        run: |\n          echo \"Deploying ${{ github.sha }} to production...\"\n```\n\n### 3. Caching Strategy\n\nCache dependencies, not the full environment:\n\n```yaml\n- name: Cache pip\n  uses: actions\u002Fcache@v4\n  with:\n    path: ~\u002F.cache\u002Fpip\n    key: ${{ runner.os }}-pip-${{ hashFiles('**\u002Frequirements*.txt') }}\n    restore-keys: |\n      ${{ runner.os }}-pip-\n\n- name: Cache npm\n  uses: actions\u002Fcache@v4\n  with:\n    path: ~\u002F.npm\n    key: ${{ runner.os }}-npm-${{ hashFiles('**\u002Fpackage-lock.json') }}\n    restore-keys: |\n      ${{ runner.os }}-npm-\n\n- name: Cache Docker layers\n  uses: actions\u002Fcache@v4\n  with:\n    path: \u002Ftmp\u002F.buildx-cache\n    key: ${{ runner.os }}-buildx-${{ github.sha }}\n    restore-keys: |\n      ${{ runner.os }}-buildx-\n```\n\n**Cache key rule:** Always include a hash of the dependency manifest in the\nprimary key. Use `restore-keys` for partial fallback.\n\n### 4. Testing Matrix\n\nTest across multiple versions and OS:\n\n```yaml\nstrategy:\n  matrix:\n    python-version: [\"3.11\", \"3.12\", \"3.13\"]\n    os: [ubuntu-latest, macos-latest]\n  fail-fast: false  # Don't cancel other versions on one failure\n\nsteps:\n  - uses: actions\u002Fsetup-python@v5\n    with:\n      python-version: ${{ matrix.python-version }}\n  - run: pytest\n```\n\n**When to use matrices:**\n- ✅ Library that needs compatibility across versions\n- ✅ Project used on multiple OS\n- ❌ Single-service app deployed to one platform (use one version, save CI time)\n- ❌ When matrix multiplies CI time 6x for no benefit\n\n### 5. Cache Eviction Management\n\nGitHub caches have a 7-day eviction policy (LRU, 10GB limit). For\nactive branches, old caches can pile up. Manage them:\n\n```yaml\n# Delete caches on PR close to prevent thrashing\non:\n  pull_request:\n    types: [closed]\n\njobs:\n  cleanup:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fgithub-script@v7\n        with:\n          script: |\n            const caches = await github.rest.actions.getActionsCacheList({\n              owner: context.repo.owner,\n              repo: context.repo.repo,\n            });\n            for (const cache of caches.data.actions_caches) {\n              if (cache.key.includes(context.payload.pull_request.head.ref)) {\n                await github.rest.actions.deleteActionsCacheByKey({\n                  owner: context.repo.owner,\n                  repo: context.repo.repo,\n                  key: cache.key,\n                });\n              }\n            }\n```\n\n**Cache key strategy:** Use `${{ github.sha }}` or `${{ github.run_id }}` in\nthe primary key only for build artifacts (Docker images). For dependencies,\nalways use a hash of the manifest file.\n\n### 6. OIDC Authentication for Cloud Providers\n\nInstead of storing cloud credentials as GitHub Secrets, use OIDC:\n\n```yaml\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    permissions:\n      id-token: write  # Needed for OIDC\n      contents: read\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - name: Configure AWS credentials\n        uses: aws-actions\u002Fconfigure-aws-credentials@v4\n        with:\n          role-to-assume: arn:aws:iam::123456:role\u002Fgithub-actions-deploy\n          aws-region: us-east-1\n      # Now use aws CLI without any stored secrets\n      - run: aws s3 sync .\u002Fdist s3:\u002F\u002Fmyapp-bucket\n```\n\n**Benefits:** No long-lived credentials, automatic rotation, audit trail in\nCloudTrail. Supported by AWS, GCP, Azure, and HashiCorp Vault.\n\n### 7. Actions Version Updates\n\nKeep action versions current with Dependabot:\n\n```yaml\n# .github\u002Fdependabot.yml\nversion: 2\nupdates:\n  - package-ecosystem: \"github-actions\"\n    directory: \"\u002F\"\n    schedule:\n      interval: \"weekly\"\n    labels:\n      - \"dependencies\"\n      - \"ci\"\n```\n\nThis automatically opens PRs when `actions\u002Fcheckout@v4` has a newer version\n(`v5` is coming), keeping your pipeline secure.\n\n```yaml\nenvironments:\n  staging:\n    url: https:\u002F\u002Fstaging.example.com\n    protection_rules:\n      - reviewers: [team-leads]\n  production:\n    url: https:\u002F\u002Fexample.com\n    protection_rules:\n      - reviewers: [deployment-managers]\n      - wait_timer: 5  # 5-minute manual approval window\n```\n\n**Environment rules:**\n- Staging deploys automatically from `main`\n- Production requires approval (manual gate)\n- Production has concurrency protection (one deploy at a time)\n- Each environment has its own secrets scope\n\n### 6. Secrets Management\n\n```yaml\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    environment: production\n    steps:\n      - name: Deploy\n        env:\n          SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}\n          DB_URL: ${{ secrets.PRODUCTION_DB_URL }}\n        run: |\n          # Use env vars, never echo them\n          rsync -e \"ssh -i \u002Fdev\u002Fstdin\" .\u002Fdist\u002F user@server:\u002Fapp\u002F\n```\n\n**Rules:**\n- Store secrets in GitHub Secrets, not in code or config files\n- Use environment-scoped secrets (staging vs production)\n- Never echo or log secret values\n- Mask secrets in CI output automatically (GitHub does this)\n- Rotate secrets regularly; use a secrets manager for production\n\n### 7. Conditional Execution\n\n```yaml\n# Only run deploy when pushing to main (not on PR)\ndeploy:\n  if: github.ref == 'refs\u002Fheads\u002Fmain' && github.event_name == 'push'\n\n# Only run docs job when docs change\ndocs:\n  if: contains(github.event.head_commit.message, '[docs]')\n\n# Skip CI for trivial changes\non:\n  push:\n    paths-ignore:\n      - '**.md'\n      - 'docs\u002F**'\n```\n\n### 8. Concurrency Control\n\nPrevent race conditions on deployments:\n\n```yaml\nconcurrency:\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: true  # Cancel previous run for same branch\n```\n\n### 9. Pipeline Monitoring\n\n```yaml\n# Notification on failure\n- name: Notify on failure\n  if: failure()\n  uses: slackapi\u002Fslack-github-action@v2\n  with:\n    webhook: ${{ secrets.SLACK_WEBHOOK }}\n    webhook-type: incoming-webhook\n    payload: |\n      {\n        \"text\": \"❌ CI failed: ${{ github.repository }}@${{ github.sha }}\"\n      }\n```\n\n### 10. Docker Multi-Stage Build\n\n```dockerfile\n# Build stage\nFROM python:3.12-slim AS builder\nCOPY requirements.txt .\nRUN pip install --user -r requirements.txt\n\n# Runtime stage\nFROM python:3.12-slim\nCOPY --from=builder \u002Froot\u002F.local \u002Froot\u002F.local\nCOPY . \u002Fapp\nWORKDIR \u002Fapp\nENV PATH=\u002Froot\u002F.local\u002Fbin:$PATH\nCMD [\"uvicorn\", \"main:app\", \"--host\", \"0.0.0.0\", \"--port\", \"8080\"]\n```\n\n**See also:** `nextjs-docker-multistage` skill for Node\u002FNext.js specifics.\n\n## Pipeline Optimization\n\n| Issue | Fix |\n|-------|-----|\n| Pipeline takes 20+ minutes | Parallelize independent jobs, cache dependencies |\n| Flaky tests | Tag as `integration`, run separately from `unit` |\n| Deploying on every commit | Only deploy when `main` branch push, not PR |\n| Test matrix runs 12 jobs | Reduce to relevant versions only |\n| Secrets in logs | Use `::add-mask::` or ensure no echo of secrets |\n\n## Anti-Patterns\n\n| Anti-pattern | Why it's wrong |\n|-------------|----------------|\n| Deploying from feature branches | No review gate, bypasses CI |\n| One giant job | Can't see which phase failed, slow |\n| No caching | Every CI run installs deps from scratch (3-5 min waste) |\n| Hardcoded secrets | Visible to anyone with repo access |\n| `latest` tag for deploys | Can't roll back to a specific version |\n| Deploy without integration tests | Broken on prod despite CI passing |\n| Matrix with `fail-fast: true` | Hides compatibility issues in later versions |\n\n## Verification\n\n```yaml\n# Run the CI pipeline locally (act)\n# https:\u002F\u002Fgithub.com\u002Fnektos\u002Fact\n# Usage: act -j test\nact -j lint\nact -j test --secret-file .secrets\n```\n","# CI\u002FCD Pipeline Patterns\n\n## When to Use\n\nLoad this skill when:\n- Setting up CI for a new project\n- Adding deployment automation\n- Optimizing slow CI pipelines\n- Reviewing pipeline configurations\n- Debugging a failing CI run\n\n## Core Principles\n\n### 1. Pipeline Structure\n\nEvery CI\u002FCD pipeline follows this flow:\n\n```\n[Commit\u002FPush] → [Lint] → [Test] → [Build] → [Deploy\u002Fstaging] → [Deploy\u002Fprod]\n                                                          ↕\n                                                    [Integration tests]\n```\n\n**Separation of concerns:** Each phase is an independent job. A phase failure\nstops downstream phases but doesn't block parallel phases.\n\n### 2. GitHub Actions — Standard Layout\n\n```yaml\nname: CI\n\non:\n  push:\n    branches: [main, develop]\n  pull_request:\n    branches: [main]\n\nenv:\n  PYTHON_VERSION: \"3.12\"\n  NODE_VERSION: \"20\"\n\njobs:\n  lint:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-python@v5\n        with:\n          python-version: ${{ env.PYTHON_VERSION }}\n      - run: pip install ruff\n      - run: ruff check .\n\n  test:\n    needs: lint\n    runs-on: ubuntu-latest\n    services:\n      postgres:\n        image: postgres:16\n        env:\n          POSTGRES_PASSWORD: testpass\n        ports:\n          - 5432:5432\n        options: >-\n          --health-cmd pg_isready\n          --health-interval 10s\n          --health-timeout 5s\n          --health-retries 5\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - uses: actions\u002Fsetup-python@v5\n        with:\n          python-version: ${{ env.PYTHON_VERSION }}\n      - name: Cache dependencies\n        uses: actions\u002Fcache@v4\n        with:\n          path: ~\u002F.cache\u002Fpip\n          key: ${{ runner.os }}-pip-${{ hashFiles('**\u002Frequirements*.txt') }}\n          restore-keys: |\n            ${{ runner.os }}-pip-\n      - run: pip install -r requirements-dev.txt\n      - run: pytest --cov=.\u002F --cov-report=xml\n      - uses: codecov\u002Fcodecov-action@v4\n        with:\n          file: .\u002Fcoverage.xml\n\n  build:\n    needs: test\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - run: docker build -t myapp:${{ github.sha }} .\n      - run: docker tag myapp:${{ github.sha }} myapp:latest\n\n  deploy-staging:\n    needs: build\n    if: github.ref == 'refs\u002Fheads\u002Fmain'\n    runs-on: ubuntu-latest\n    environment: staging\n    steps:\n      - name: Deploy to staging\n        run: |\n          echo \"Deploying ${{ github.sha }} to staging...\"\n          # ssh, rsync, or kubectl commands\n\n  deploy-production:\n    needs: deploy-staging\n    if: github.ref == 'refs\u002Fheads\u002Fmain' && github.event_name == 'push'\n    runs-on: ubuntu-latest\n    environment: production\n    concurrency: production-deploy  # Prevents concurrent deploys\n    steps:\n      - name: Deploy to production\n        run: |\n          echo \"Deploying ${{ github.sha }} to production...\"\n```\n\n### 3. Caching Strategy\n\nCache dependencies, not the full environment:\n\n```yaml\n- name: Cache pip\n  uses: actions\u002Fcache@v4\n  with:\n    path: ~\u002F.cache\u002Fpip\n    key: ${{ runner.os }}-pip-${{ hashFiles('**\u002Frequirements*.txt') }}\n    restore-keys: |\n      ${{ runner.os }}-pip-\n\n- name: Cache npm\n  uses: actions\u002Fcache@v4\n  with:\n    path: ~\u002F.npm\n    key: ${{ runner.os }}-npm-${{ hashFiles('**\u002Fpackage-lock.json') }}\n    restore-keys: |\n      ${{ runner.os }}-npm-\n\n- name: Cache Docker layers\n  uses: actions\u002Fcache@v4\n  with:\n    path: \u002Ftmp\u002F.buildx-cache\n    key: ${{ runner.os }}-buildx-${{ github.sha }}\n    restore-keys: |\n      ${{ runner.os }}-buildx-\n```\n\n**Cache key rule:** Always include a hash of the dependency manifest in the\nprimary key. Use `restore-keys` for partial fallback.\n\n### 4. Testing Matrix\n\nTest across multiple versions and OS:\n\n```yaml\nstrategy:\n  matrix:\n    python-version: [\"3.11\", \"3.12\", \"3.13\"]\n    os: [ubuntu-latest, macos-latest]\n  fail-fast: false  # Don't cancel other versions on one failure\n\nsteps:\n  - uses: actions\u002Fsetup-python@v5\n    with:\n      python-version: ${{ matrix.python-version }}\n  - run: pytest\n```\n\n**When to use matrices:**\n- ✅ Library that needs compatibility across versions\n- ✅ Project used on multiple OS\n- ❌ Single-service app deployed to one platform (use one version, save CI time)\n- ❌ When matrix multiplies CI time 6x for no benefit\n\n### 5. Cache Eviction Management\n\nGitHub caches have a 7-day eviction policy (LRU, 10GB limit). For\nactive branches, old caches can pile up. Manage them:\n\n```yaml\n# Delete caches on PR close to prevent thrashing\non:\n  pull_request:\n    types: [closed]\n\njobs:\n  cleanup:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fgithub-script@v7\n        with:\n          script: |\n            const caches = await github.rest.actions.getActionsCacheList({\n              owner: context.repo.owner,\n              repo: context.repo.repo,\n            });\n            for (const cache of caches.data.actions_caches) {\n              if (cache.key.includes(context.payload.pull_request.head.ref)) {\n                await github.rest.actions.deleteActionsCacheByKey({\n                  owner: context.repo.owner,\n                  repo: context.repo.repo,\n                  key: cache.key,\n                });\n              }\n            }\n```\n\n**Cache key strategy:** Use `${{ github.sha }}` or `${{ github.run_id }}` in\nthe primary key only for build artifacts (Docker images). For dependencies,\nalways use a hash of the manifest file.\n\n### 6. OIDC Authentication for Cloud Providers\n\nInstead of storing cloud credentials as GitHub Secrets, use OIDC:\n\n```yaml\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    permissions:\n      id-token: write  # Needed for OIDC\n      contents: read\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - name: Configure AWS credentials\n        uses: aws-actions\u002Fconfigure-aws-credentials@v4\n        with:\n          role-to-assume: arn:aws:iam::123456:role\u002Fgithub-actions-deploy\n          aws-region: us-east-1\n      # Now use aws CLI without any stored secrets\n      - run: aws s3 sync .\u002Fdist s3:\u002F\u002Fmyapp-bucket\n```\n\n**Benefits:** No long-lived credentials, automatic rotation, audit trail in\nCloudTrail. Supported by AWS, GCP, Azure, and HashiCorp Vault.\n\n### 7. Actions Version Updates\n\nKeep action versions current with Dependabot:\n\n```yaml\n# .github\u002Fdependabot.yml\nversion: 2\nupdates:\n  - package-ecosystem: \"github-actions\"\n    directory: \"\u002F\"\n    schedule:\n      interval: \"weekly\"\n    labels:\n      - \"dependencies\"\n      - \"ci\"\n```\n\nThis automatically opens PRs when `actions\u002Fcheckout@v4` has a newer version\n(`v5` is coming), keeping your pipeline secure.\n\n```yaml\nenvironments:\n  staging:\n    url: https:\u002F\u002Fstaging.example.com\n    protection_rules:\n      - reviewers: [team-leads]\n  production:\n    url: https:\u002F\u002Fexample.com\n    protection_rules:\n      - reviewers: [deployment-managers]\n      - wait_timer: 5  # 5-minute manual approval window\n```\n\n**Environment rules:**\n- Staging deploys automatically from `main`\n- Production requires approval (manual gate)\n- Production has concurrency protection (one deploy at a time)\n- Each environment has its own secrets scope\n\n### 6. Secrets Management\n\n```yaml\njobs:\n  deploy:\n    runs-on: ubuntu-latest\n    environment: production\n    steps:\n      - name: Deploy\n        env:\n          SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}\n          DB_URL: ${{ secrets.PRODUCTION_DB_URL }}\n        run: |\n          # Use env vars, never echo them\n          rsync -e \"ssh -i \u002Fdev\u002Fstdin\" .\u002Fdist\u002F user@server:\u002Fapp\u002F\n```\n\n**Rules:**\n- Store secrets in GitHub Secrets, not in code or config files\n- Use environment-scoped secrets (staging vs production)\n- Never echo or log secret values\n- Mask secrets in CI output automatically (GitHub does this)\n- Rotate secrets regularly; use a secrets manager for production\n\n### 7. Conditional Execution\n\n```yaml\n# Only run deploy when pushing to main (not on PR)\ndeploy:\n  if: github.ref == 'refs\u002Fheads\u002Fmain' && github.event_name == 'push'\n\n# Only run docs job when docs change\ndocs:\n  if: contains(github.event.head_commit.message, '[docs]')\n\n# Skip CI for trivial changes\non:\n  push:\n    paths-ignore:\n      - '**.md'\n      - 'docs\u002F**'\n```\n\n### 8. Concurrency Control\n\nPrevent race conditions on deployments:\n\n```yaml\nconcurrency:\n  group: ${{ github.workflow }}-${{ github.ref }}\n  cancel-in-progress: true  # Cancel previous run for same branch\n```\n\n### 9. Pipeline Monitoring\n\n```yaml\n# Notification on failure\n- name: Notify on failure\n  if: failure()\n  uses: slackapi\u002Fslack-github-action@v2\n  with:\n    webhook: ${{ secrets.SLACK_WEBHOOK }}\n    webhook-type: incoming-webhook\n    payload: |\n      {\n        \"text\": \"❌ CI failed: ${{ github.repository }}@${{ github.sha }}\"\n      }\n```\n\n### 10. Docker Multi-Stage Build\n\n```dockerfile\n# Build stage\nFROM python:3.12-slim AS builder\nCOPY requirements.txt .\nRUN pip install --user -r requirements.txt\n\n# Runtime stage\nFROM python:3.12-slim\nCOPY --from=builder \u002Froot\u002F.local \u002Froot\u002F.local\nCOPY . \u002Fapp\nWORKDIR \u002Fapp\nENV PATH=\u002Froot\u002F.local\u002Fbin:$PATH\nCMD [\"uvicorn\", \"main:app\", \"--host\", \"0.0.0.0\", \"--port\", \"8080\"]\n```\n\n**See also:** `nextjs-docker-multistage` skill for Node\u002FNext.js specifics.\n\n## Pipeline Optimization\n\n| Issue | Fix |\n|-------|-----|\n| Pipeline takes 20+ minutes | Parallelize independent jobs, cache dependencies |\n| Flaky tests | Tag as `integration`, run separately from `unit` |\n| Deploying on every commit | Only deploy when `main` branch push, not PR |\n| Test matrix runs 12 jobs | Reduce to relevant versions only |\n| Secrets in logs | Use `::add-mask::` or ensure no echo of secrets |\n\n## Anti-Patterns\n\n| Anti-pattern | Why it's wrong |\n|-------------|----------------|\n| Deploying from feature branches | No review gate, bypasses CI |\n| One giant job | Can't see which phase failed, slow |\n| No caching | Every CI run installs deps from scratch (3-5 min waste) |\n| Hardcoded secrets | Visible to anyone with repo access |\n| `latest` tag for deploys | Can't roll back to a specific version |\n| Deploy without integration tests | Broken on prod despite CI passing |\n| Matrix with `fail-fast: true` | Hides compatibility issues in later versions |\n\n## Verification\n\n```yaml\n# Run the CI pipeline locally (act)\n# https:\u002F\u002Fgithub.com\u002Fnektos\u002Fact\n# Usage: act -j test\nact -j lint\nact -j test --secret-file .secrets\n```\n",{"name":5,"tags":24,"version":30,"category":31,"description":32,"related_skills":33},[25,26,27,28,29],"ci","cd","github-actions","deployment","automation","1.0.0","devops","CI\u002FCD pipeline configuration patterns: GitHub Actions, multi-stage builds, testing matrices, deployment workflows, secrets management, caching strategies, and pipeline optimization.\n",[34,35,36,37],"github-pr-workflow","test-driven-development","nextjs-docker-multistage","nginx-web-app-deployment","main","2e6aa8d15ab0a366c90be54f61bf9c6e97015e83","skills\u002Fdevops\u002Fci-cd-pipeline",1,"https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet","steadfaste.com","https:\u002F\u002Fgithub.com\u002Flukemcqueen","AI Architect | Building Hermes Cortex: governed multi-agent AI for autonomous software engineering | Enterprise Tech Consultant","2026-11-14 22:33:34",{"source":8,"skillName":5,"commands":48,"prompt":58,"zipAvailable":59},[49,52,55],{"tool":50,"command":51},"npx","npx skills add lukemcqueen\u002Fsteadfaste-fleet --skill ci-cd-pipeline",{"tool":53,"command":54},"bunx","bunx skills add lukemcqueen\u002Fsteadfaste-fleet --skill ci-cd-pipeline",{"tool":56,"command":57},"pnpm","pnpm dlx skills add lukemcqueen\u002Fsteadfaste-fleet --skill ci-cd-pipeline","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fci-cd-pipeline\u002FSKILL.md",true,[],[62,70,77,84,91,98],{"skillNo":63,"name":64,"nameZh":6,"description":65,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":69},"01M7DXY4G8NSVB59K8B6S2AQNP","macbook-linux-maintenance","Legacy MacBook Linux fixes: GPU wedge, reboot hang, thermal.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fmacbook-linux-maintenance\u002FSKILL.md",[],[],"2026-11-15 14:19:17",{"skillNo":71,"name":72,"nameZh":6,"description":73,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":69},"01M7DXXYJCXFJ3TGB84ZQ8KFE6","governance-regression-triage","Triage a host's governance issues: what changed.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fgovernance-regression-triage\u002FSKILL.md",[],[],{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":69},"01M7DXXSAP1G8FDRJAMXQGBBMK","enforcement-immutability","Use when enforcement files lose their immutable flag.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fenforcement-immutability\u002FSKILL.md",[],[],{"skillNo":85,"name":86,"nameZh":6,"description":87,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":88,"categories":89,"keywords":90,"publishedAt":69},"01M78SSDQVRYX64Y16X32TC0NS","steadfaste-fleet-repo-deploy","Use when committing to the steadfaste-fleet repo.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-repo-deploy\u002FSKILL.md",[],[],{"skillNo":92,"name":93,"nameZh":6,"description":94,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":95,"categories":96,"keywords":97,"publishedAt":69},"01M78SS928F3R2RJAYVW4E30CE","steadfaste-fleet-maintenance","Maintain an installed Steadfaste Fleet instance — update both the upstream Hermes Agent and the fleet repo layer, merge diverged histories, sync skills safely, and troubleshoot common issues. Covers the dual-update workflow (hermes update + fleet-update.sh), encrypted brain data backup, mycortex import, and recovery techniques.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Fsteadfaste-fleet-maintenance\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":69},"01M78SP1CHW0T0BWE5ZT6JBPX8","fleet-preflight","DEPRECATED alias — merged into survey-before-action (2026-08-20). Load survey-before-action instead; its \"Repo-Specific Pre-Flight\" section covers git search, Hermes boundary, and deployment verification.","https:\u002F\u002Fgithub.com\u002Flukemcqueen\u002Fsteadfaste-fleet\u002Fblob\u002Fmain\u002Fskills\u002Fdevops\u002Ffleet-preflight\u002FSKILL.md",[],[]]