A complete, reusable pattern for wiring a code-quality gate (SonarQube) to Docker

build, image scanning, and SSH-based deployment across development, staging, and

production using a single reusable workflow and GitHub Environments for secrets

and approval gates.

This document explains not just what to copy, but why each piece is shaped the