Monthly release to editors and webmasters¶
When to use¶
The last thursday of the month we deploy as usual as well as to the webmasters production environments as well. It is very important to note here. The webmaster production environments will have the latest release - 1. This usually mean last weeks release.
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 version to editors and moduletest environments¶
- In your local environment ensure that your checkout of the
main
branch fordpl-platform
is up to date. - Create a new branch from
main
. - Now update
infrastructure/environments/dplplat01/sites.yaml
:- The 'x-defaults' anchors' 'dpl-cms-release' tag should be bumped to the new version.
- Then update the 'moduletest-dpl-cms-release' of 'x-webmaster' and 'x-webmaster-with-defaults' anchor.
- Now update 'dpl-cms-release' of the 'x-webmaster' anchor to the penultimate version of the cms.
- 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
task cluster:mode:release
to get more nodes while deploying. - Run
task sites:sync
fromdplsh
to deploy the changes. - If there are any Terraform changes then do not apply them, abort the deployment and consult the platform team.
- Open the Deployments list page within the Lagoon UI to see all running and queued deployments.
- Wait for all the deployments to complete.
- Run
task sites:incomplete-deployments
to identify any failed deployments. - If some deployments did not complete determine if the error relates to the platform or the application.
- For all platform-related errors try to redeploy the environment from the Lagoon UI.
- Merge the pull request once the deployment completes.
- Run
task cluster:adjust:resource-request
fromdplsh
. - Run
task cluster:promote-workloads-to-prod
fromdplsh
. - Synchronize moduletest with main, so moduletest becomes an exact
copy of main by running
task sites:webmaster:reset-moduletest
. - Run 'task cluster:mode:reset' from
dplsh
.
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