⚡ ~/naveed Interview Prep
⚡ Portfolio Home ✍️ Engineering Blog Deep Dives 🎯 Interview Hub 998+ Scenarios ☸️ Kubernetes Mastery Hub 24 Modules 🎮 DevOps Arcade & Quizzes Subnet Blitz ⚡ 🗺️ DevOps Roadmaps PDFs & Guides 🤖 Morpheus Analysis AI Quant ↗ 🛠️ Developer Tools Utilities 🧪 Labs & Experiments 📄 Interactive CV & Certs 🔗 All Links & Socials ⚡ Join The Dispatch (Weekly SRE Newsletter) →
Staff SRE / Principal Architect [L3] CI/CD GitHub Actions Staff SRE Scenario [L3]

Q: You need to build a reusable CI/CD workflow that can be used by 50 different repositories in your GitHub organization. How do you structure this?

Use reusable workflows (.github/workflows/ in a central repository):

#CI/CD #GitHub Actions #L3 #DevOps #Automation #Pipelines
🎙️ Candidate Opening & Architectural Context
""When developers encounter this build or release bottleneck, my first goal is unblocking velocity safely. When addressing this question, I walk the interviewer through our production incident runbook: isolating the blast radius, checking diagnostic logs and metrics, and applying a safe fix.""
Advertisement

🛠️ Production Runbook & Step-by-Step Resolution

1️⃣

Production Solution & Architecture

Use reusable workflows (.github/workflows/ in a central repository): Central repo (.github/workflows/build-and-push.yml): Consumer repo: Benefits: one place to update the pipeline, all repos get the update. Version it with tags (@v1, @v2) for stability. --- ## 🔵 GitLab CI

on:
  workflow_call:
    inputs:
      image-name:
        required: true
        type: string
    secrets:
      REGISTRY_TOKEN:
        required: true
💡 The Senior SRE Gold Nugget (Key Architectural Takeaway)
"Pro-Tip: Use reusable workflows (.github/workflows/ in a central repository):."
⚡ 60-Second Elevator Pitch Talking Points
  • Immediate Triage: Use reusable workflows (.github/workflows/ in a central repository):
  • Run targeted verification commands before modifying configuration.
  • Automate permanent guardrails (CI check, alerts, IaC policy) to prevent recurrence.
Advertisement
Want more CI/CD scenarios?
Explore our complete collection of scenario-based CI/CD interview runbooks.
Browse All CI/CD Questions →

📚 Related Production Scenarios in CI/CD