Refer to https://vortex.drevops.com/latest/usage/deploy for more information.
- Code is authored on a local machine by a developer.
- Once the code is ready, it is pushed to GitHub. A pull request needs to be opened for this code change.
- The CI "listens" for code changes and will start an automated build.
- At the end of the build, when all tests have passed, the CI will trigger a deployment to Lagoon.
- Once deployed, a PR environment will appear with a PR name. The database will be taken from production environment. All pending update hooks and other deployment operations will run during deployment.
Once PR is closed, the environment will be automatically removed.
To fresh the database in the existing Lagoon environment with the database from production environment, run:
VORTEX_DEPLOY_BRANCH=<YOUR/BRANCH-NAME> VORTEX_DEPLOY_ACTION=deploy_override_db ahoy deploy