Skip to content

Commit 8bd69e6

Browse files
committed
Update text
1 parent d48731b commit 8bd69e6

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/deploy_to_aws.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ on:
3030
type: boolean
3131
default: false
3232
clear-opensearch:
33-
description: 'Clear custom OpenSearch indexes and templates'
33+
description: 'Clear the custom OpenSearch indexes and templates'
3434
required: false
3535
type: boolean
3636
default: false

.github/workflows/release-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
- production
1717
default: sandbox
1818
clear-opensearch:
19-
description: 'Clear custom OpenSearch indexes and templates'
19+
description: 'Clear the custom OpenSearch indexes and templates'
2020
required: false
2121
type: boolean
2222
default: false

deployment/clear_opensearch/clear_opensearch.sh.tpl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
# This script is necessary to delete custom OpenSearch indexes,
3+
# This script is necessary to delete the custom OpenSearch indexes,
44
# templates, and Logstash pipeline lock files in order to apply
55
# new index mappings or to refresh the OpenSearch cluster after
66
# restarting Logstash, with the lock files deleted from EFS
@@ -11,11 +11,11 @@
1111
# targeted refresh without affecting the entire OpenSearch cluster.
1212
# This can help speed up the deployment process of new changes.
1313

14-
echo -e "\nDelete custom OpenSearch indexes\n"
14+
echo -e "\nDelete the custom OpenSearch indexes\n"
1515
curl -X DELETE https://$OPENSEARCH_DOMAIN/production-locations --aws-sigv4 "aws:amz:eu-west-1:es" --user "$AWS_ACCESS_KEY_ID:$AWS_SECRET_ACCESS_KEY"
1616
curl -X DELETE https://$OPENSEARCH_DOMAIN/moderation-events --aws-sigv4 "aws:amz:eu-west-1:es" --user "$AWS_ACCESS_KEY_ID:$AWS_SECRET_ACCESS_KEY"
1717

18-
echo -e "\nDelete custom OpenSearch templates\n"
18+
echo -e "\nDelete the custom OpenSearch templates\n"
1919
curl -X DELETE https://$OPENSEARCH_DOMAIN/_index_template/production_locations_template --aws-sigv4 "aws:amz:eu-west-1:es" --user "$AWS_ACCESS_KEY_ID:$AWS_SECRET_ACCESS_KEY"
2020
curl -X DELETE https://$OPENSEARCH_DOMAIN/_index_template/moderation_events_template --aws-sigv4 "aws:amz:eu-west-1:es" --user "$AWS_ACCESS_KEY_ID:$AWS_SECRET_ACCESS_KEY"
2121

doc/release/RELEASE-PROTOCOL.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,12 @@ Each new feature should reside in its own branch, which can be pushed to the cen
112112
Once `main` has acquired enough features for a release (or a predetermined release date is approaching), you run the `Release [Init]` GitHub workflow that creates a new release branch with a version number for the release. The release version number for release branches includes only the major and minor versions.
113113

114114
When the release branch is ready for release, the `Release [Deploy]` workflow should be run for each environment, such as sandbox and production. This workflow will create two Git tags, each with a version number.
115-
This workflow will also initiate the Deploy to AWS workflow and pass it the necessary parameters. If you need to clear custom OpenSearch indexes and tenplates during deployment, you need to select the `Clear custom OpenSearch indexes and templates` checkbox.
115+
This workflow will also initiate the Deploy to AWS workflow and pass it the necessary parameters. If you need to clear the custom OpenSearch indexes and tenplates during deployment, you need to select the `Clear the custom OpenSearch indexes and templates` checkbox.
116116

117117
#### Hotfix branches
118118

119119
Hotfix branches are utilized to quickly patch production and sandbox releases. They resemble release branches and feature branches, except they are based on a release branch instead of `main`. This is the branch that should fork directly from a release branch. As soon as the fix is complete, it should be merged into the release branch and, if the fix isn't dirty, into `main` as well. After manually running the `Release [Deploy]` workflow, two new tags with increased patch versions will be created, and the new version will be shipped to sandbox and production environments.
120-
This workflow will also initiate the Deploy to AWS workflow and pass it the necessary parameters. If you need to clear custom OpenSearch indexes and templates during deployment, you need to select the `Clear custom OpenSearch indexes and templates` checkbox.
120+
This workflow will also initiate the Deploy to AWS workflow and pass it the necessary parameters. If you need to clear the custom OpenSearch indexes and templates during deployment, you need to select the `Clear the custom OpenSearch indexes and templates` checkbox.
121121

122122
#### Quick-fix branches
123123

@@ -159,7 +159,7 @@ Make sure that:
159159
1. To enhance communication within the team, the responsible person for the release must notify all stakeholders about the release two working days before its scheduled date and in 1-2 hours to prevent any actions on the environment on which the deployment is carried out.
160160
2. The responsible person have to take db snapshot manually via Amazon RDS in the `Snapshots` tab with name `env-db-date` (examples: `stg-db-05-18-2024` and `prd-db-05-18-2024`).
161161
3. On the designated time and day, before triggering workflow on Production environment the responsible person have manually make active the `disable_list_uploading` switch, as mentioned in [Block loading of new production locations](#block-loading-production-locations).
162-
4. Then the responsible person runs the `Release [Deploy]` workflow for the sandbox and production environments from the release branch. They need to fill in the full release tag version (`X.Y.Z`) and choose the environment. If the responsible person need to clear custom OpenSearch indexes and templates during deployment, they must select the `Clear custom OpenSearch indexes and templates` checkbox.
162+
4. Then the responsible person runs the `Release [Deploy]` workflow for the sandbox and production environments from the release branch. They need to fill in the full release tag version (`X.Y.Z`) and choose the environment. If the responsible person need to clear the custom OpenSearch indexes and templates during deployment, they must select the `Clear the custom OpenSearch indexes and templates` checkbox.
163163
ℹ️ Note, that `Deploy to AWS` workflow will be triggered <strong>automatically</strong> for the sandbox and production environments respectively.
164164
5. After completing the triggered workflows, the responsible person must open the AWS console and verify that all tasks of the `OpenSupplyHubStagingAppDD`, `OpenSupplyHubStagingApp`, `OpenSupplyHubStagingAppLogstash`, `OpenSupplyHubProductionAppDD`, `OpenSupplyHubProductionApp` and `OpenSupplyHubProductionAppLogstash` services in the `ecsOpenSupplyHubStagingCluster` and `ecsOpenSupplyHubProductionCluster` Amazon ECS clusters, respectively, have been restarted.
165165
6. Additionally, it is necessary to check the OpenSearch domains and their statuses, such as Domain Processing Status, Configuration Change Status, and Cluster Health, to ensure they are green (which indicates that everything is fine). Use the Amazon OpenSearch Service console to check this.
@@ -175,7 +175,7 @@ In case there is a need to run additional command in the terminal of the Django
175175
### Hotfixes
176176

177177
- To deploy a hotfix to pre-prod, you should fork from the latest release branch, and after preparing the fix, merge it back. Merging will trigger the `Deploy to AWS` workflow that will deploy the hotfix to the **running** pre-prod environment.
178-
- To release a hotfix to production and staging, you should fork from the latest release branch, and after preparing the fix, merge it back. For production you have to make active the `disable_list_uploading` switch. The last step is to execute the `Release [Deploy]` workflow for each environment separately, which will deploy the fix to these two environments. If you need to clear custom OpenSearch indexes and templates during deployment, you must select the `Clear custom OpenSearch indexes and templates` checkbox. At the end for production make inactive the `disable_list_uploading` switch.
178+
- To release a hotfix to production and staging, you should fork from the latest release branch, and after preparing the fix, merge it back. For production you have to make active the `disable_list_uploading` switch. The last step is to execute the `Release [Deploy]` workflow for each environment separately, which will deploy the fix to these two environments. If you need to clear the custom OpenSearch indexes and templates during deployment, you must select the `Clear the custom OpenSearch indexes and templates` checkbox. At the end for production make inactive the `disable_list_uploading` switch.
179179

180180
### Quick-fixes
181181

0 commit comments

Comments
 (0)