Acquia Deployments, Code Studio CI/CD and Release Management for Drupal
Every Acquia deployment should answer "what is live?". Branches and tags, Code Studio CI/CD, and release management that fits enterprise change control.

This is Part 3 of 10 in Drupal on Acquia: Enterprise Operations Guide, a free series for the people who run Drupal sites on Acquia Cloud Platform. Every Acquia deployment should answer “what is live?”. Branches and tags, Code Studio CI/CD, and release management that fits enterprise change control.
Git workflow and Acquia deployment
The deployment history for Webocreation Group’s corporate site told a story. Production had been switched between branches eleven times in six months, sometimes to master, sometimes to develop, once to a branch called fix-homepage-urgent. Nobody could say for certain what code had been live on any given day. When a bug appeared in October, it took two developers a full day just to work out which change had introduced it.
A deployment workflow should answer one question instantly: what code is running in each environment, and how did it get there? This section sets up a workflow that does.

How deployment works on Acquia
On Cloud Platform, each environment is set to a branch or a tag in the application’s Git repository. Code moves between environments in three ways:
- Pushing to a tracked branch. When an environment tracks a branch, pushing new commits to that branch deploys them to the environment automatically.
- Deploying code from one environment to another. In the Cloud Platform interface, you can deploy the code from one environment to another, typically from Stage to Prod. Cloud Platform creates a tag for the deployment, so production runs a fixed point in history.
- Switching code. You can change which branch or tag an environment tracks, through the interface, Acquia CLI or the API.
Every deployment triggers Cloud Hooks or Cloud Actions, if configured, which run tasks such as database updates and cache rebuilds (see the Cloud Hooks section).
Branches to Dev and Stage, tags to Prod
The pattern that works best for most teams is simple:
- Dev tracks an integration branch, such as develop or main. Merging a feature into it deploys to Dev automatically.
- Stage tracks a release branch or a tag being prepared for production. When Dev looks right, the release is promoted to Stage for testing and approval.
- Prod always runs a tag. Never a branch. A tag is a fixed, named point in history that cannot change. If production runs a branch, any push to that branch goes live, whether or not it was tested.
When you deploy from Stage to Prod through the interface, Cloud Platform handles the tagging for you. If you deploy with tags you create yourself, use a consistent naming scheme, such as a date and sequence number (2026-11-18.1) or a semantic version (v4.12.0).
Choosing a branching model
Your branching model decides how work flows into the integration branch. Two models are common for Drupal teams.
Trunk-based development keeps one main branch. Developers work in short-lived feature branches, open merge requests, pass automated checks and merge into main several times a week. Releases are tags created from main. This model is simple and works well with good automated testing and frequent releases.
Release branches add a step: when a release is ready, a release branch is created from the integration branch, deployed to Stage, fixed if needed, and then tagged for production. This suits teams with scheduled releases and longer testing cycles.
Whichever you choose, follow three rules:
- What was tested on Stage is exactly what goes to Prod. No last-minute commits.
- Hotfixes follow a defined path. For an urgent fix, branch from the production tag, fix, test on Stage, tag and deploy, then merge the fix back into the integration branch so it is not lost.
- Feature branches are short-lived. Long-running branches drift and create painful merges, especially in Drupal configuration files.
Source code versus build artifacts
There are two ways to manage what goes into the Acquia repository.
Committing everything. The repository contains your custom code plus everything Composer installs: Drupal core, contributed modules and the vendor directory. This is simple but makes the repository large and the history noisy, and it is easy for someone to edit vendor code by mistake.
Build artifacts. Your source repository contains only your custom code, composer.json, composer.lock, configuration and hooks. A build process runs composer install, compiles front-end assets if needed, and pushes the complete result, called an artifact, to the Acquia repository. Code Studio does this automatically. You can also do it with Acquia CLI’s push:artifact command or another CI tool.
Build artifacts are the better choice for most enterprise teams. The source repository stays clean, every deployment is built the same way, and nobody edits dependencies by hand. If you use artifacts, the Acquia repository becomes a deployment target, and developers work in the source repository, typically in Code Studio.
One known detail: if your theme compiles CSS and JavaScript and the compiled files are excluded by .gitignore, make sure your build process includes them in the artifact. Acquia’s Code Studio documentation describes how to handle front-end builds.
Deploying to production
A production deployment on Acquia should follow the same steps every time. The release management section places these steps inside your change process. The technical sequence is:
- Confirm Stage is ready. The release is tested and approved on Stage, and Stage runs exactly the code to be deployed.
- Take a database backup of production. Cloud Platform lets you create an on-demand backup before deploying. Do it every time.
- Deploy the code from Stage to Prod, or switch Prod to the release tag.
- Let post-deployment tasks run: database updates, configuration import and cache rebuild, through Cloud Hooks or Cloud Actions.
- Verify. Check key pages, forms and logs. Clear CDN caches if needed.
- Record the deployment: the tag, time and who deployed it, in your change record.
Database updates and configuration changes
Most Drupal releases include more than code. They may include database update functions from modules (run by drush updb) and configuration changes (imported by drush cim). The order matters: database updates usually run first, then configuration import, then cache rebuild. drush deploy runs them in the right order, which is why it should be the standard post-deployment command (see the Cloud Hooks section).
Maintenance mode
For most releases, Drupal sites can stay online during deployment. For releases with long-running database updates or large configuration changes, consider putting the site into maintenance mode first, so visitors and editors do not see errors or save content during the update. Anonymous visitors may still see cached pages from Varnish and the CDN, which is usually fine.
Rolling back
Rolling back code on Acquia is easy: deploy the previous tag. Rolling back the database is harder. If the release ran database updates or imported configuration, the database may no longer match the old code.
Plan rollback before each release:
- Code-only releases (no database updates, no configuration changes): redeploy the previous tag.
- Releases with database updates or configuration changes: restore the pre-deployment database backup and redeploy the previous tag. Any content created since the backup will be lost, so decide quickly, and consider maintenance mode during the release to prevent new content.
- Fix forward: for small problems, a quick hotfix release may be safer than a rollback.
Test your rollback method on Stage at least once a quarter.
Webocreation Group: One answer to “what is live?”
Arjun set a new rule: production runs tags, always. He chose trunk-based development with the corporate developers, moved the source repository to Code Studio with build artifacts, and set Dev to track main. Stage ran a release tag for testing, and production deployments were done by deploying from Stage to Prod in the Cloud Platform interface, with an on-demand backup taken first.
When the next bug appeared, a developer compared the production tag with the previous one, found the change in ten minutes and fixed it the same afternoon.
Template: Deployment runbook for Acquia
| Step | Action | Tool | Done |
|---|---|---|---|
| 1 | Confirm release tag on Stage matches approved scope | Cloud Platform interface | |
| 2 | Confirm change request approved and window open | ServiceNow | |
| 3 | Announce start in the release channel | Chat | |
| 4 | Create on-demand database backup of Prod | Cloud Platform interface or acli | |
| 5 | Enable maintenance mode if the release needs it | drush state:set system.maintenance_mode 1 | |
| 6 | Deploy code from Stage to Prod | Cloud Platform interface | |
| 7 | Confirm post-deployment tasks completed (updb, cim, cr) | Task log in Cloud Platform | |
| 8 | Disable maintenance mode | drush state:set system.maintenance_mode 0 | |
| 9 | Purge CDN cache if needed | CDN or Acquia Purge | |
| 10 | Smoke test key pages, forms and search | Browser and checklist | |
| 11 | Check logs for new errors | Cloud Platform logs or drush watchdog:show | |
| 12 | Record tag, time and result in the change request | ServiceNow |
Checklist
- Set production to run tags only.
- Choose trunk-based development or release branches, and document the choice.
- Define the hotfix path, including merging fixes back.
- Decide whether to commit everything or deploy build artifacts.
- Take an on-demand database backup before every production deployment.
- Use drush deploy for post-deployment tasks.
- Write a rollback plan for each release type and test it quarterly.
Common traps
- Production on a branch. Any push to that branch goes live untested.
- Last-minute commits after Stage testing. What goes to Prod must be what was tested.
- Forgetting hotfixes in the main branch. The next release quietly removes the fix.
- Rolling back code but not the database. Old code on an updated database can break the site.
- Deploying without a backup. On-demand backups take minutes and save days.
CI/CD with Code Studio
Webocreation Group’s corporate site had no automated tests. Every release was checked by a developer clicking through the site on Stage. When a contributed module update broke the lead form in a subtle way, the problem reached production because the developer who tested the release did not happen to submit the form.
Continuous integration and continuous deployment (CI/CD) automate the repetitive parts of delivery: building code, running tests, checking for problems and deploying to environments. On Acquia, the integrated option is Code Studio. This section explains how it works, how to set it up, and what to do if you use a different CI tool.

What Code Studio is
Code Studio is a DevOps platform built on GitLab, hosted and managed by Acquia and integrated with Cloud Platform. It provides:
- Git repositories for your source code, with merge requests and code review.
- CI/CD pipelines that build, test and deploy your application.
- Drupal Auto DevOps, a standard pipeline maintained by Acquia that works for most Drupal projects without writing pipeline code.
- Automatic updates jobs that can create merge requests for Drupal core and module updates.
- Issue tracking and planning features from GitLab.
Code Studio connects to Cloud Platform using a Cloud API key and secret stored as protected CI/CD variables. Its pipeline uses Acquia CLI to interact with your environments.
Code Studio is sold as an add-on with seats for users, so check your entitlements before planning around it.
Code Studio versus Acquia Pipelines
Older Acquia applications may use Acquia Pipelines, an earlier CI service configured with an acquia-pipelines.yml file. Pipelines is not supported on Cloud Next, and Acquia recommends Code Studio instead. If you still use Pipelines, plan a migration. Acquia CLI includes a command, acli codestudio:pipelines-migrate, that converts an acquia-pipelines.yml file into a GitLab .gitlab-ci.yml file as a starting point.
Drupal Auto DevOps
Most teams start with Drupal Auto DevOps, which runs a standard set of stages when you push code:
- Build: installs dependencies with Composer and prepares the codebase.
- Test: sets up Drupal, can use a copy of your Cloud Platform database, and runs automated tests.
- Deploy: creates a build artifact and pushes it to your Cloud Platform repository using acli push:artifact, deploying to the environment that tracks the branch.
Auto DevOps also supports scheduled automatic updates, which check for new versions of Drupal core and contributed modules and open merge requests for them. This turns security updates from a manual chore into a review task.
Acquia owns and maintains the Auto DevOps pipeline code. You can customize your pipeline through supported variables and by adding your own jobs, but the terms of service restrict modifying Acquia’s pipeline code itself. Read the current Code Studio documentation and product guide before customizing.
Setting up Code Studio
The setup process, at a high level:
- Enable Code Studio for your subscription. The subscription owner can do this.
- Create a Code Studio project for your application. Acquia CLI provides a wizard command, acli codestudio:wizard, that creates the project, connects it to Cloud Platform and sets the required variables.
- Move your source code into the Code Studio repository, if it is not there already.
- Configure branch mapping so that the right branches deploy to the right environments, and production deploys only through your release process.
- Add team members with appropriate roles. Protect the main branch so changes arrive only through approved merge requests.
- Set the PHP version used in builds to match your Cloud Platform environments.
Run the first pipelines on Dev, check the artifacts and the deployed site carefully, and only then rely on the pipeline for Stage and Prod.
What to test
Automated testing for Drupal sites does not need to be elaborate to be valuable. Start with fast, high-value checks and add more over time.
| Test type | What it catches | Tools |
|---|---|---|
| Coding standards | Style problems and some bugs in custom code | PHP_CodeSniffer with Drupal standards |
| Static analysis | Type errors, deprecated code, undefined functions | PHPStan with Drupal extensions |
| Deprecation checks | Code that will break in the next Drupal major version | Upgrade Status, PHPStan deprecation rules |
| Unit and kernel tests | Logic errors in custom modules | PHPUnit |
| Functional and browser tests | Broken pages, forms and user journeys | Drupal’s test framework, Behat, Playwright, Cypress |
| Configuration checks | Configuration that does not import cleanly | A pipeline job that runs drush cim against a fresh install |
| Accessibility and visual checks | Accessibility errors, unexpected layout changes | axe-based tools, visual regression tools |
For the lead form problem, a single browser test that submitted the form and checked for the confirmation message would have caught the bug before it reached Stage.
Merge requests and code review
CI is most effective when combined with merge requests. A good flow:
- A developer creates a feature branch and pushes changes.
- The pipeline runs automatically on the branch.
- The developer opens a merge request.
- Another developer reviews the code and the pipeline results.
- When approved and green, the change is merged into the integration branch, which deploys to Dev.
Protect the integration branch and the main branch so nobody can push directly, and require passing pipelines before merging. Note that some GitLab features, such as certain approval rule options, may differ in Code Studio from GitLab’s own products; check Acquia’s known issues page.
Deploying to Stage and production
Decide how far automation goes. Common choices:
- Automatic to Dev, on every merge into the integration branch.
- Automatic or one-click to Stage, when a release tag is created.
- Manual approval for Prod, through your change process (see the release management section), with the actual deployment done by deploying from Stage to Prod in Cloud Platform or by a pipeline job that requires a manual trigger.
Fully automatic production deployment is possible but rare in enterprises, because change control usually requires an approval step. The pipeline can still do all the work; a person simply presses the button at the approved time.
Using another CI tool
If your organization standardizes on another CI platform, such as GitHub Actions, Azure DevOps or Jenkins, you can still deploy to Acquia. The pattern is:
- Build the artifact in your CI tool: composer install –no-dev, front-end build, and tests.
- Push the artifact to the Acquia repository using acli push:artifact or a Git push to a deployment branch.
- Use the Cloud Platform API, through Acquia CLI, to deploy to Stage or Prod and to create backups.
Store the Acquia API key and secret in the CI tool’s protected secrets, belonging to a service account (see the access management section). Allowlist your CI runners’ IP addresses if your Acquia environments restrict access.
Webocreation Group: Green before merge
Arjun enabled Code Studio, ran the wizard, and started with Drupal Auto DevOps. Over the next month, the team added coding standards checks, PHPStan, and six browser tests covering the home page, search, the lead form, a product page, the careers job listing and the editor login. Every merge request now showed a green or red pipeline before review.
The automatic updates job opened its first merge request within a week: a security release for a contributed module. The team reviewed it, the pipeline passed, and it reached production two days later. Before Code Studio, the same update would have waited weeks.
Template: CI/CD pipeline plan
| Stage | Trigger | Jobs | Blocks merge or deploy if failing? | Owner |
|---|---|---|---|---|
| Build | Every push | Composer install, front-end build | Yes | Platform team |
| Quality | Every push | PHP_CodeSniffer, PHPStan, deprecation checks | Yes | Lead developer |
| Test | Every push | PHPUnit, configuration import check, browser tests | Yes | Lead developer |
| Deploy to Dev | Merge to main | Create artifact, push to Acquia, deploy | Not applicable | Pipeline |
| Deploy to Stage | Release tag created | Deploy tag to Stage, run smoke tests | Not applicable | Platform team |
| Deploy to Prod | Manual, after change approval | Backup, deploy from Stage to Prod, smoke tests | Not applicable | Platform lead |
| Automatic updates | Weekly schedule | Check core and module updates, open merge requests | No | Pipeline, reviewed by developers |
Checklist
- Confirm Code Studio entitlements, or choose another CI tool.
- Migrate any Acquia Pipelines configuration to Code Studio.
- Set up Drupal Auto DevOps and verify artifacts on Dev before using it for Stage and Prod.
- Protect the main branch and require passing pipelines and review before merging.
- Add coding standards, static analysis and a few browser tests for critical journeys.
- Enable automatic update merge requests and review them promptly.
- Keep a manual approval step for production deployments.
Common traps
- Pipelines that nobody watches. A failing pipeline that is ignored is worse than none.
- Testing nothing that matters. Start with browser tests for the journeys that make money.
- CI secrets on personal accounts. Use a service account and protected variables.
- Mismatched PHP versions. Build with the same PHP version as your environments.
- Modifying Acquia’s pipeline code. Customize through supported options and your own jobs.
Release management and change control
Webocreation Group’s IT change manager had a simple complaint about the Drupal team: “Your changes show up in production and then in my records, if at all.” The contractor had deployed whenever a change was ready, often in the middle of the business day, and raised change requests afterwards, when he remembered. In the last audit, eight production deployments had no change record. Auditors flagged it as a control failure.
Acquia makes deploying easy, which is mostly good. But in an enterprise, the ability to deploy in two clicks has to fit inside a change process that records, approves and schedules changes. This section shows how to make Acquia deployments fit enterprise change control without slowing the team to a crawl.

Why change control matters on a managed platform
It is tempting to think that because Acquia manages the infrastructure, change control is Acquia’s concern. It is not. Every deployment of your code or configuration, every domain change, every PHP version change and every database restore is a change to a production system that your organization owns. Your change process, usually run in ServiceNow or a similar ITSM tool, exists to make sure those changes are planned, risk-assessed, approved, scheduled sensibly and recorded.
Acquia also makes platform changes on its side, such as infrastructure maintenance and PHP patch updates. Those are Acquia’s changes, communicated through its status page, notifications and release notes. Subscribe to them, because they can affect your sites.
Types of Acquia changes
Classify the changes your team makes on Acquia into the standard change types used by most ITSM processes.
| Change type | Acquia examples | Approval |
|---|---|---|
| Standard (pre-approved) | Weekly release of tested code from Stage to Prod using the documented runbook; Drupal security update that passed CI and Stage testing; adding a domain to an environment; CDN cache purge | Pre-approved template; no CAB meeting per change |
| Normal | Drupal major version upgrade; PHP version change on Prod; moving an application to a new infrastructure generation; launching a new site; changing edge security rules; database restore on Prod | Risk assessment and approval; CAB review for higher risk |
| Emergency | Critical Drupal security release under active exploitation; rollback of a failed release; fix for a production outage | Fast-track approval; reviewed afterwards |
The goal is to make routine releases standard changes, so the team can deploy weekly with a two-minute change record instead of a weekly CAB presentation. Most change processes require a track record before they approve a standard change: a documented runbook and a series of successful releases.
The release calendar
Agree a regular release window with your change manager and stakeholders. A common pattern for Drupal sites:
- Weekly production release window, early morning on a weekday, avoiding Fridays.
- Daily or on-demand deployments to Dev and Stage, which are not production changes.
- Monthly maintenance window for larger updates, such as PHP patch upgrades or bundled module updates.
- Change freezes around major campaigns, product launches and company events.
Publish the calendar where requesters can see it. Predictable releases reduce pressure for ad hoc deployments.
Fast-tracking Drupal security releases
The Drupal Security Team publishes security advisories for core and contributed modules, usually on a predictable schedule: core security releases are typically announced in advance for a Wednesday release window. Highly critical releases sometimes come with a public service announcement days in advance, giving you time to prepare.
Agree a security release process with your change manager in advance:
- Monitor advisories through Drupal.org security announcements, email, RSS or your CI automatic update jobs.
- Assess each advisory: does it affect modules you use, and how severe is it?
- Apply and test the update through your normal CI pipeline and on Stage.
- Deploy under a standard change for routine security updates, or an emergency change for critical, actively exploited vulnerabilities.
For highly critical core releases announced in advance, plan the release window ahead of time and have people available. Being able to deploy a critical security fix within hours of release is one of the most important capabilities a Drupal team can have.
Writing a good change request for Acquia
A change request should let a reviewer who does not know Drupal understand the change and its risk. For a release, include:
- What is changing: a plain-language summary and a link to the list of tickets or merge requests.
- Which application and environment: linked to the configuration item in your CMDB.
- The release tag being deployed.
- Testing done: CI pipeline results, Stage testing and approvals.
- Whether the release includes database updates or configuration changes, which affects rollback.
- Implementation steps: your deployment runbook (see the deployment workflow section).
- Backout plan: redeploy the previous tag; restore the pre-deployment backup if database updates ran.
- Impact: expected downtime, if any, and maintenance mode use.
Attach evidence when you close it: the Cloud Platform task log, smoke test results and confirmation from the business owner where needed.
Connecting Code Studio and ServiceNow
Manual double entry between tools is where change records get forgotten. Reduce it:
- Put the change request number in the release tag message or merge request description.
- Put the release tag and pipeline link in the change request.
- If your organization supports it, integrate the pipeline with ServiceNow so a production deployment job can check that an approved change exists and record the deployment automatically.
Even a simple rule, “no production deployment without a change number in the release notes,” closes most of the gap.
Release notes
Write release notes in plain language for every production release, and send them to stakeholders. Good release notes help editors know what has changed, help support teams handle questions, and give the change record a readable summary.
Keep them short: one line per change, grouped by type (new features, fixes, security updates), with links for anyone who wants detail.
Platform changes from Acquia
Acquia changes its platform regularly: PHP patch versions, infrastructure updates, new features and retired ones. Stay informed:
- Subscribe to the Acquia status page for incidents and maintenance.
- Read Cloud Platform release notes regularly.
- Watch the end-of-life schedule for PHP versions, Drupal versions and Acquia products (see the upgrades section).
- Record major Acquia changes in your own change calendar, so incidents can be matched against them.
When a platform change could affect your site, test it on Stage first if possible. For example, PHP version changes can be made per environment, so you can upgrade Stage, test and then upgrade Prod under a change request.
Webocreation Group: From control failure to standard change
Arjun met the change manager and proposed a deal: for twelve weeks, every production deployment would be a normal change with full documentation, at a fixed weekly window. If all twelve succeeded, the team would apply for a standard change template.
All twelve succeeded. The change manager approved three standard change templates for the Drupal estate: weekly release from Stage to Prod, Drupal security updates that passed CI and Stage testing, and domain additions. The next audit found a change record for every production deployment, each with a release tag, test evidence and a closure note.
Template: Release change request for Acquia
| Field | Content |
|---|---|
| Short description | Corporate site weekly release 2026-11-18.1 (7 items) |
| Configuration item | Corporate website (Acquia application: corporate, environment: prod) |
| Change type | Standard: weekly Drupal release |
| Release tag | 2026-11-18.1 |
| Summary | Plain-language list of changes, with links to merge requests |
| Database updates or config changes | Yes: 2 module updates with database updates; 3 configuration changes |
| Testing | Pipeline green; Stage tested and approved by content owner |
| Implementation plan | Deployment runbook, steps 1 to 12 |
| Backout plan | Redeploy tag 2026-11-11.1 and restore pre-deployment backup; decision within 30 minutes |
| Expected impact | No downtime; maintenance mode not required |
| Window | Tuesday 7:00 to 8:00 |
| Closure evidence | Task log, smoke tests, config status check |
Checklist
- Classify your Acquia changes into standard, normal and emergency types.
- Agree a weekly release window and publish a release calendar.
- Agree a fast-track process for Drupal security releases.
- Build a track record and apply for standard change templates.
- Link release tags, merge requests and change records.
- Write plain-language release notes for every production release.
- Subscribe to Acquia’s status page and release notes.
Common traps
- Change records after the fact. If the record comes after the deployment, it is not change control.
- Normal changes for everything. Routine releases drown in approvals and teams start avoiding the process.
- Slow security releases. A critical Drupal advisory needs a path to production measured in hours.
- Ignoring Acquia’s own changes. Platform updates can affect your site. Track them.
- Release notes nobody can read. Write for editors and stakeholders, not just developers.
Part 2 followed code from a branch to production: Git workflows, CI/CD, configuration management, automation with hooks, and release management. Part 3 turns to how sites perform once they are live.
Related reading
- Git, CI/CD and Staging for OpenCart: A Deployment Workflow That Doesn’t Break the Live Store
- How to Upgrade Drupal 10 to Drupal 11: Step-by-Step With Composer, Drush and Upgrade Status
- Incident Lifecycle for Ecommerce: From Alert to Postmortem
- Drupal 10 End of Life on December 9, 2026: What Stops, What Still Works, and Your Options
- Acquia Access Management and the Drupal Toolchain
- Drupal Configuration Management and Acquia Cloud Hooks







