Post-Deployment Automation

Applies to: FlexLab

Overview

Post-deployment Automation runs FlexSite-side scripts after GitLab pipeline deploy completes.

Steps

  1. Open /dashboard/[orgId]/project/[id]/environment/[envId]/automation.
  2. Add ordered steps: Drush config import, cache rebuild, search index, custom scripts.
  3. Save automation chain.
  4. Push a commit to trigger pipeline; verify logs show automation success.

Example commands

  • drush updatedb -y
  • drush cim -y
  • drush cr

vs GitLab CI

  • Use GitLab for build/test/artifact creation.
  • Use FlexSite Automation for runtime Drupal operations on live environment infrastructure.

Combine with Environment Variables for API keys used in shell steps.