DEV Community

Supraja Tangella
Supraja Tangella

Posted on

𝗠𝗼𝘀𝘁 𝗖𝗼𝗺𝗺𝗼𝗻𝗹𝘆 𝗨𝘀𝗲𝗱 𝗣𝗶𝗽𝗲𝗹𝗶𝗻𝗲 𝗣𝗮𝘁𝘁𝗲𝗿𝗻 𝗶𝗻 𝗥𝗲𝗮𝗹-𝗪𝗼𝗿𝗹𝗱 𝗗𝗲𝘃𝗢𝗽𝘀 𝗣𝗿𝗼𝗷𝗲𝗰𝘁𝘀

In today’s fast-paced development environments, choosing the right pipeline pattern is critical for achieving reliable and efficient software delivery.

After working on multiple Azure DevOps projects and observing industry practices, one pattern stands out as the most widely adopted:

𝗕𝘂𝗶𝗹𝗱 𝗢𝗻𝗰𝗲, 𝗗𝗲𝗽𝗹𝗼𝘆 𝗠𝗮𝗻𝘆 — typically implemented using 𝗠𝘂𝗹𝘁𝗶-𝗦𝘁𝗮𝗴𝗲 𝗬𝗔𝗠𝗟 𝗣𝗶𝗽𝗲𝗹𝗶𝗻𝗲𝘀.

Why is this pattern so effective?

  • 𝗖𝗼𝗻𝘀𝗶𝘀𝘁𝗲𝗻𝗰𝘆: The application is built only once and that same artifact is deployed across environments like Dev, QA, Staging, and Production. This prevents environment-specific issues.
  • 𝗘𝗳𝗳𝗶𝗰𝗶𝗲𝗻𝗰𝘆: Saves time by avoiding repeated builds for each stage.
  • 𝗦𝗲𝗰𝘂𝗿𝗶𝘁𝘆 𝗮𝗻𝗱 𝗖𝗼𝗺𝗽𝗹𝗶𝗮𝗻𝗰𝗲: Easier to audit and control what gets promoted to production.
  • 𝗦𝗰𝗮𝗹𝗮𝗯𝗶𝗹𝗶𝘁𝘆: Works well with approvals, gates, and automated testing.

𝗘𝘅𝗮𝗺𝗽𝗹𝗲 𝗪𝗼𝗿𝗸𝗳𝗹𝗼𝘄:

  1. 𝗖𝗼𝗱𝗲 𝗽𝘂𝘀𝗵𝗲𝗱 𝘁𝗼 𝗿𝗲𝗽𝗼
  2. CI Pipeline builds and publishes artifact
  3. CD Pipeline deploys to Dev (auto)
  4. QA and Prod deployments triggered with approvals
  5. Same artifact flows through each stage

stages:

  • stage: Build jobs: ...
  • stage: Deploy_Dev jobs: ...
  • stage: Deploy_QA jobs: ...
  • stage: Deploy_Prod jobs: ...

𝗪𝗵𝗮𝘁 𝗽𝗶𝗽𝗲𝗹𝗶𝗻𝗲 𝗽𝗮𝘁𝘁𝗲𝗿𝗻 𝗶𝘀 𝘆𝗼𝘂𝗿 𝘁𝗲𝗮𝗺 𝗰𝘂𝗿𝗿𝗲𝗻𝘁𝗹𝘆 𝘂𝘀𝗶𝗻𝗴, 𝗮𝗻𝗱 𝗵𝗼𝘄 𝗵𝗮𝘀 𝗶𝘁 𝗵𝗲𝗹𝗽𝗲𝗱 𝘆𝗼𝘂𝗿 𝗱𝗲𝗹𝗶𝘃𝗲𝗿𝘆 𝗽𝗿𝗼𝗰𝗲𝘀𝘀?

Top comments (0)