Skip to content

Deploy new release for approval testing

When to use

When deploying a new release, for approval testing by DDF, on the staging project

Prerequisites

Procedure: New release for approval testing

Use this procedure to deploy a new version for testing before it is released to production library sites.

  1. In your local environment ensure that your checkout of the main branch for dpl-platform is up to date.
  2. Create a new branch from main.
  3. Open infrastructure/environments/dplplat01/sites.yaml
  4. Set the value of dpl-cms-release and moduletest-dpl-cms-release for staging to the new version
  5. Set the value of moduletest-dpl-cms-release for bnf to the new version
  6. Commit the change and push your branch to GitHub and create a pull request.
  7. Request a review for the change and wait for approval.
  8. Start dplsh from the /infrastructure directory of your local environment by running ../tools/dplsh/dplsh.sh.
  9. Deploy the changes
  10. Run SITE=staging task site:sync
  11. Run SITE=bnf task site:sync
  12. Wait for the deployments for staging and bnf to complete using Lagoon UI
  13. If a deployment does not complete determine if the error relates to the platform or the application.
  14. If it is a platform-related error then try to redeploy the environment from the Lagoon UI.
  15. Merge the pull request once the deployment completes.

Procedure: A site fails to deploy

We have experience this quite a lot. We have gathered a list of known issues and how to solve them a troubleshoot runbook