azure devops

Drupal Acquia Azure CI/CD pipeline - Conclusion

27 October 2025
You have unlocked the ultimate CI/CD trifecta: Reliability, Speed, and Stability.

This architecture delivers a robust, production-grade asset:
- Reliability: Guaranteed by the "Locked Box" Docker image.
- Speed: Achieved by the "Factory & Assembly Line" and critical gzip optimizations.
- Stability: Ensured by the 100% stable manual Docker networking for integration tests.

Combined with best-practice Branch Policies, this is the last Drupal CI/CD pipeline you'll ever need to build. Fast, stable, and ready for production!

The Final Piece: How to Trigger PR Builds

27 October 2025
Stop relying on confusing YAML blocks for PR builds!

The modern, secure way to validate Pull Requests is through Azure DevOps Branch Policies.

🔑 The Fix: Simply go to Repos > Branches and set your main Assembly Line pipeline (your fast-running pipeline) as a Required Build Validation for your develop and main branches.

This makes the Azure DevOps UI the single source of truth for PR triggers. Your Deploy stage will automatically skip deployment because it recognizes the build reason is PullRequest—giving you fast, secure testing without any accidental production pushes!

Control your PR quality directly from the UI, and let your YAML focus on deployment!

Core Concept 2: The "Factory & Assembly Line" (Why Two Pipelines)

27 October 2025
Stop wasting 2-3 minutes rebuilding your Docker image on every commit!

The secret to a fast pipeline is splitting your work into the "Factory & Assembly Line."
- The Factory: Runs rarely (only when your Dockerfile changes) to build the slow, reliable "Locked Box" image.
- The Assembly Line: Runs constantly (on every commit) but skips the Docker build entirely. It simply downloads the pre-built image from the Factory and uses it to instantly run your fast code tests.

The result? Your daily pipeline runs are dramatically faster, only executing the work that matters: testing your code.