Automation

Applies to: All

Overview

Automation defines post-deployment scripts (Drush, WP-CLI, shell) run after each successful deploy at /dashboard/[orgId]/project/[id]/environment/[envId]/automation.

Steps — add a script

  1. Open Automation in the environment sidebar.
  2. Click Add script or New automation step.
  3. Choose type: Drush, WP-CLI, or Shell.
  4. Enter the command (e.g. drush cr, drush cim -y).
  5. Drag to reorder steps; order matters.
  6. Save. The script runs on the next deployment.

Steps — test

  1. Trigger a deployment (push for FlexLab, or republish for Codeless).
  2. Open deployment logs from Overview or pipeline view.
  3. 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.