Post-Deployment Automation
Applies to: FlexLab
Overview
Post-deployment Automation runs FlexSite-side scripts after GitLab pipeline deploy completes.
Steps
- Open
/dashboard/[orgId]/project/[id]/environment/[envId]/automation. - Add ordered steps: Drush config import, cache rebuild, search index, custom scripts.
- Save automation chain.
- Push a commit to trigger pipeline; verify logs show automation success.
Example commands
drush updatedb -ydrush cim -ydrush 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.