forked from LD4P/qa_server_aws_deploy
-
Notifications
You must be signed in to change notification settings - Fork 1
What to do when a part of the stack changes
E. Lynette Rayle edited this page May 13, 2022
·
1 revision
A change in Questioning Authority (QA) happens when a new release of QA becomes available. You can track changes to QA at rubygems.org/gems/qa.
If you want to change the QA version, you will need to do all the steps below.
If you made changes to the Admin UI in LD4P/qa_server, after making changes through the regular PR process, start at 2.3 in the steps below.
- check that the new QA version is compatible with the restrictions defined in LD4P/qa_server qa_server.gemspec
- If NOT, update the version restrictions in LD4P/qa_server and release a new version of the engine. NOTE: Depending on the changes in QA, you may have to update code in LD4P/qa_server to make it compatible with the new version of QA.
- If it is, no changes needed in LD4P/qa_server
- check that the new QA version is compatible with the restrictions defined in LD4P/qa_server_container Gemfile
- If NOT, update the version restrictions in LD4P/qa_server_container.
- Once compatible, use
bundle update qa
to update the QA version. - Assign a new version for LD4P/qa_server_container in
/VERSION
following Semantic Versioning NOTE: In this case, the level of the version change will be driven by the significance of the change in QA. - Describe the changes that will be seen when using the new version of LD4P/qa_server_container in
/CHANGELOG.md
. - Create a PR with the changes to Gemfile, Gemfile.lock, VERSION, and CHANGELOG.md.
- If you are confident in the changes, you can merge the PR into
dev
branch which will trigger a build and deploy the-int image
to the AWS-ECR private repo. If you want to test before merging intodev
branch, you can use GitHub actionPush image of dev branch to integration image at Amazon ECR as ld4p/qa_authority_lookup-int
-> Run workflow -> select your branch -> Run workflow.- To test
-int
image, run GitHub actionredeploy-int
in cul-it/qa_server_aws_deploy - test on http://lookup-int.ld4l.org
- To test
- When happy with the image, create a PR to merge into
dev
branch intomain
branch and merge it. This will trigger a build and deploy the-stg image
to the AWS-ECR private repo.- To test
-stg
image, run GitHub actionredeploy-stg
in cul-it/qa_server_aws_deploy - test on http://lookup-stg.ld4l.org
- To test
- When happy, create a release in GitHub from the
main
branch. This will trigger a build and deploy of the branches tagged code to the production public image of the lookup server. The images will be tagged:latest
and with the version in/VERSION
.
- Redeploy cul-it/qa_server_aws_deploy using GitHub action
redeploy-prod
to put it in production at http://lookup.ld4l.org.