CI/CD

The Deploy Stage (deploy.yml)

27 October 2025
This Deployment Template is the final, streamlined step in your Assembly Line, a masterclass in efficiency that uses the "Locked Box" to deploy your code package.

🔑 Key to Speed & Control:
- The "Double Download" Fix: We use the critical steps: - download: none to disable automatic artifact downloading, preventing wasted time.
- Targeted Downloads: It manually and swiftly downloads the "Locked Box" from the Factory and your final Code Package from the current build.
- Instant Image Load: It repeats the efficient gunzip -c | docker load trick to load the deployment tools instantly.
- Self-Contained Deployment: The final docker run executes the Acquia deployment script inside your secure "Locked Box," using pre-prepared SSH keys, with no flaky networking needed.

This is the fastest, cleanest way to get your built code from CI/CD to production!

Pipeline B: The "Assembly Line" (Your Main Pipeline)

27 October 2025
This is your main application pipeline—the Assembly Line—and it's now drastically faster! Why? Because it intelligently consumes the pre-built "Locked Box" from the Factory, cutting out slow Docker build times.

🔑 Key to this Orchestrator:
- No pr: block: PR validation is handled by powerful Azure DevOps Branch Policies, giving you finer control.
- imageBuilderPipelineName: A critical variable linking directly to your "Factory" pipeline, ensuring your Assembly Line always pulls the correct, pre-optimized image.
- Smart Triggers: It runs on pushes to main and develop but excludes the Dockerfile changes, keeping it focused purely on your application code.
- Conditioned Deployment: Deployments only happen on merges (not PRs), ensuring a clean, controlled release flow.

This is where your code gets built, tested, and deployed at maximum velocity!

Core Concept 1: The "Locked Box" (Why We Must Use Docker)

27 October 2025
Stop fighting "it broke on Monday" and "it works on my machine" bugs!

The "Locked Box" isn't just a container—it's your guarantee of pipeline sanity. Your Dockerfile creates an immutable environment that locks in PHP 8.3, all your extensions, and essential tools like acli for perfect, portable execution today, tomorrow, and a year from now.

By pre-baking your dependencies, you don't just get reliability; you get speed—eliminating the wasted minutes of running apt-get on every single job.

Ready to lock down your environment and debug CI failures locally in minutes?

The Factory & The Assembly Line: A High-Performance Drupal CI/CD Pipeline for Acquia and Azure DevOps

27 October 2025
Unlock high-speed, rock-solid Drupal CI/CD in Azure DevOps!

Tired of slow, unreliable pipelines? Discover the "Locked Box" Docker strategy and our "Factory & Assembly Line" two-pipeline approach to achieve the perfect balance of speed and reliability.

Learn how to:
- Build a consistent environment with a custom Docker image.
- Slash build times by only rebuilding what you need.
- Master robust Docker-in-Docker integration testing.
- Get complete, fast YAML templates for building, testing, and deploying to Acquia.

Stop sacrificing stability for speed. Build the fast, maintainable Drupal pipeline you need today!