Automation
Breadcrumb
-
- Environment Management
- Automation
Applies to: All
Overview
Automation defines post-deployment scripts (Drush, WP-CLI, shell) run after each successful deploy from Automation in the environment sidebar.
Steps — add a script
- Open Automation in the environment sidebar.
- Click Add script or New automation step.
- Choose type: Drush, WP-CLI, or Shell.
- Enter the command (e.g.
drush cr,drush cim -y). - Drag to reorder steps; order matters.
- Save. The script runs on the next deployment.
Steps — test
- Trigger a deployment (push for FlexLab, or republish for Codeless).
- Open deployment logs from Overview or pipeline view.
- Confirm each automation step succeeded.
FlexLab vs Codeless
- FlexLab: Scripts run after GitLab pipeline deploy.
- Codeless: Scripts run after dashboard-driven deploys and syncs.
Use Environment Variables (FlexLab) for secrets referenced in scripts.