Deploy new release for approval testing¶
When to use¶
When deploying a new release, for approval testing by DDF, on the staging project
Prerequisites¶
- A local checkout of the
dpl-platform
repository - A running dplsh with
DPLPLAT_ENV
set to the platform environment name. - The version tag you want to deploy. This must correspond to a
tagged version of the
dpl-cms-source
image.
Procedure: New release for approval testing¶
Use this procedure to deploy a new version for testing before it is released to production library sites.
- In your local environment ensure that your checkout of the
main
branch fordpl-platform
is up to date. - Create a new branch from
main
. - Open
infrastructure/environments/dplplat01/sites.yaml
, findstaging
, then update the value ofdpl-cms-release
forstaging
to the new version - Commit the change and push your branch to GitHub and create a pull request.
- Request a review for the change and wait for approval.
- Start
dplsh
from the/infrastructure
directory of your local environment by running../tools/dplsh/dplsh.sh
. - Run
SITE=staging task site:sync
to deploy the changes. - Open the deployment section for the
staging
project in the Lagoon UI. - Wait for the deployment to complete.
- If the deployment does not complete determine if the error relates to the platform or the application.
- If it is a platform-related error then try to redeploy the environment from the Lagoon UI.
- Merge the pull request once the deployment completes.
Procedure: a some sites 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