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