Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Release-v1.3.0 into master #6

Merged
merged 573 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
573 commits
Select commit Hold shift + click to select a range
823f383
Add local leader role
Zangetsu101 Jul 28, 2023
5418cf0
nid validators fix in form (#642)
Nil20 Jul 28, 2023
823bd49
fix birth cypress test
kayumuzzaman Jul 28, 2023
112ac3c
Fix copy issues (#638)
kayumuzzaman Jul 31, 2023
2cffcdf
ocrvs-5708 fixed when configured to email the verbiage before send fo…
jamil314 Jul 31, 2023
3f7535d
ocrvs-5566 change fa code expire time in email and sms (#639)
kayumuzzaman Jul 31, 2023
b48c828
ocrvs-5691 Fixed french translation missing in Send for approval or r…
jamil314 Jul 31, 2023
61c315c
Merge branch 'form-config-to-country' of https://github.com/opencrvs/…
kayumuzzaman Jul 31, 2023
f65b03c
Merge branch 'form-config-to-country' into feature-data-seeding
Zangetsu101 Jul 31, 2023
2ef0a63
Fixed email notification flow (#647)
sadmananik Aug 1, 2023
9e3cee5
fix user cypress test (#646)
kayumuzzaman Aug 1, 2023
02320bc
Create data-seeding workflow
Zangetsu101 Aug 1, 2023
34c349d
Create template for data-seeding workflow
Zangetsu101 Aug 1, 2023
64c0b99
Temporarily disable data reset in staging
Zangetsu101 Aug 1, 2023
40e4072
Set working-directory for the different steps
Zangetsu101 Aug 1, 2023
7754819
Relocate the working-directory option
Zangetsu101 Aug 1, 2023
0fa4a16
Nest working-directory inside with
Zangetsu101 Aug 1, 2023
efbb2ff
Manually cd in the seed data job
Zangetsu101 Aug 1, 2023
1927831
Remove restore_metadata from deploy script
Zangetsu101 Aug 1, 2023
a72b4fa
Move zod to dependencies
Zangetsu101 Aug 1, 2023
dd2242e
Remove restore-metadata & add run-migrations
Zangetsu101 Aug 2, 2023
ce6d899
Add in network name
Zangetsu101 Aug 2, 2023
e292d82
Update descriptions json
Zangetsu101 Aug 2, 2023
ce11569
Merge pull request #580 from opencrvs/form-config-to-country
Zangetsu101 Aug 2, 2023
1492e01
Merge branch 'develop' into feature-data-seeding
Zangetsu101 Aug 2, 2023
702c359
Merge pull request #649 from opencrvs/feature-data-seeding
Zangetsu101 Aug 2, 2023
38e5dd9
ocrvs-5567 added french translation in print (and issue) certificate …
jamil314 Aug 3, 2023
3a1d26c
Bump mongoose from 5.13.15 to 5.13.20 (#619)
dependabot[bot] Aug 3, 2023
d829f9d
Return child identifiers from the validate route
Zangetsu101 Jun 1, 2023
abbecb8
Add template & mapping for child identifiers
Zangetsu101 Aug 3, 2023
5c176fd
ocrvs-5727 spouse signature issue fix (#650)
Nil20 Aug 3, 2023
f97fd17
Add a comment about empty value
Zangetsu101 Aug 4, 2023
d31391f
Fixed informant email notification (#652)
sadmananik Aug 4, 2023
5276777
Expose 12201 port for gelf logging
Zangetsu101 Aug 4, 2023
6267ecb
directory refactor
euanmillar Aug 4, 2023
a99cbe8
ocrvs-5736 declaration details message add (#651)
Nil20 Aug 7, 2023
509f1d9
Refactor form files
euanmillar Aug 7, 2023
2cd73b0
Move conditionals handlers
euanmillar Aug 7, 2023
7884f50
Run migrations after clearing all data
Zangetsu101 Aug 8, 2023
aeb95ae
Remove backup restore command
Zangetsu101 Aug 8, 2023
e306fc0
Make SUPER_USER_PASSWORD required for deploy
Zangetsu101 Aug 8, 2023
9d3f873
Fixed type imports and default custom file wip
euanmillar Aug 8, 2023
0108442
Show a custom field example
euanmillar Aug 8, 2023
17eb026
Update comments
euanmillar Aug 8, 2023
a83461f
Update the deploy workflow for dev
Zangetsu101 Aug 9, 2023
5f4fab4
Remove ENV parameter from clear-all-data script
Zangetsu101 Aug 9, 2023
944a8d5
Update env variables in the seed workflow
Zangetsu101 Aug 9, 2023
8e0133c
Update env variables in demo-data workflow
Zangetsu101 Aug 9, 2023
9a3b9bd
Create separate workflow for prod deploy
Zangetsu101 Aug 9, 2023
0af3e60
Change the seed command used
Zangetsu101 Aug 9, 2023
0a0b22d
Updated README
euanmillar Aug 9, 2023
659d2de
Merge branch 'develop' into farajaland-directory-refactor
euanmillar Aug 9, 2023
596ab37
Merge pull request #653 from opencrvs/farajaland-directory-refactor
euanmillar Aug 9, 2023
e9856d6
brn drn messages update
Aug 9, 2023
20f03cc
Pass the SUPER_USER_PASSWORD to the deploy actions
Zangetsu101 Aug 9, 2023
119db0c
Make the clear-data input to be a choice
Zangetsu101 Aug 9, 2023
369050e
Pass the SUPER_USER_PASSWORD to the deploy command
Zangetsu101 Aug 9, 2023
e3b6414
Use 'yes'/'no' as yes/no are considered booleans
Zangetsu101 Aug 9, 2023
75644f5
Call seed workflow on development deploy success
Zangetsu101 Aug 10, 2023
441fc2b
Move seed-data to a separate job
Zangetsu101 Aug 10, 2023
c5468e8
Move the final changes to the prod deploy workflow
Zangetsu101 Aug 10, 2023
2ad4899
Merge branch 'develop' into ocrvs-5562
Zangetsu101 Aug 10, 2023
81b6a2a
Merge branch 'develop' into ocrvs-5755
Aug 11, 2023
037fbcd
add unique names for the separator fields (#654)
Nil20 Aug 11, 2023
a9b1cdb
fix name of application config
kayumuzzaman Aug 14, 2023
43e842e
Merge branch 'develop' into ocrvs-5755
Aug 14, 2023
e1f83c7
Fix workflows and validators/conditionals URLs
euanmillar Aug 14, 2023
b814cf0
Merge pull request #665 from opencrvs/fix-validators
euanmillar Aug 14, 2023
22eb364
Fix conflicts
euanmillar Aug 14, 2023
a956332
Merge pull request #575 from opencrvs/ocrvs-5257
euanmillar Aug 14, 2023
7451bce
Merge pull request #661 from opencrvs/ocrvs-5755
euanmillar Aug 15, 2023
c54f490
Merge pull request #662 from opencrvs/fix-application-config-naming
euanmillar Aug 15, 2023
96bb480
Seed users in development mode on demo environment
euanmillar Aug 15, 2023
40e1ce4
Merge pull request #660 from opencrvs/ocrvs-5562
euanmillar Aug 15, 2023
f261e12
Deprecate Clickatell, sms provider and move notification settings int…
euanmillar Aug 15, 2023
0d83176
revert yarn seed commamd
euanmillar Aug 16, 2023
c7f42ec
Merge branch 'fix-patient-identifier-with-codableconcept' of https://…
kayumuzzaman Aug 16, 2023
0ec77b4
Merge branch 'develop' into fix-patient-identifier-with-codableconcept
kayumuzzaman Aug 16, 2023
d231cd0
Merge pull request #588 from opencrvs/deprecate-docker-secrets
euanmillar Aug 16, 2023
cb5a1a6
Merge pull request #583 from opencrvs/fix-patient-identifier-with-cod…
euanmillar Aug 16, 2023
50dc435
Remove showExitButtonOnly from FormSectionGroup
Zangetsu101 Aug 14, 2023
6845e99
Create test email address for Farajaland users
euanmillar Aug 17, 2023
ac86e51
Merge pull request #668 from opencrvs/test-email-accounts
euanmillar Aug 17, 2023
99005ba
Rename the NID fields
Zangetsu101 Aug 18, 2023
973c584
Revert "Rename the NID fields"
Zangetsu101 Aug 18, 2023
ee64af3
add validation for informant birth date (#658)
kayumuzzaman Aug 18, 2023
98c14f5
ocrvs-5751 modifed marital status search for death (#659)
kayumuzzaman Aug 18, 2023
c9def38
ocrvs-5764 correction record exit modal message add (#666)
Nil20 Aug 18, 2023
e703874
wip
euanmillar Aug 18, 2023
b040724
Ensure address inputs all have unique field and template names
euanmillar Aug 18, 2023
7e58d0d
fix conditionals
euanmillar Aug 18, 2023
ecea4fb
production deploy workflow fixes (#670)
Zangetsu101 Aug 21, 2023
865db29
Fix conditional logic for place of event
euanmillar Aug 21, 2023
0b8c276
ocrvs-5765 refactor birth forms dividers (#663)
Nil20 Aug 22, 2023
b8b0eeb
Fix cypress tests (#648)
kayumuzzaman Aug 2, 2023
f4cd780
Format commands file
Zangetsu101 Aug 22, 2023
ab1011a
divider fix for father and mother sections (#672)
Nil20 Aug 22, 2023
58b994b
(data-generator): generate various attachment types instead of only o…
naftis Aug 22, 2023
e1d131e
Deprecated the 3 different mutation mapping functions for place of ev…
euanmillar Aug 22, 2023
f446798
Combine address query mapping functions and tidy up unused mapping fu…
euanmillar Aug 22, 2023
93acb95
Abstract away mapping objects to make form config easier
euanmillar Aug 23, 2023
4c65aca
Add more notes
euanmillar Aug 23, 2023
81df192
Fix state and district rendering issue if place of event is another c…
euanmillar Aug 23, 2023
b62acc1
Enable marriage registration
Zangetsu101 Aug 24, 2023
e9c3677
Restart openhim after running migrations
Zangetsu101 Aug 24, 2023
d41670b
Remove retry on failure
Zangetsu101 Aug 24, 2023
d645fc7
ocrvs-5770 certificate template update (#664)
Nil20 Aug 24, 2023
7d4c75a
Add email secrets to demo compose
Zangetsu101 Aug 24, 2023
af413b7
Merge pull request #676 from opencrvs/enable-email-on-demo
euanmillar Aug 24, 2023
a75a360
Fix event location template transformer
euanmillar Aug 24, 2023
2cb795a
Add a test cert for address handlebars and rename address line 1
euanmillar Aug 24, 2023
237af08
ocrvs-5598 exact dob unknown fix (#675)
Nil20 Aug 25, 2023
9861dbe
ocrvs-5802 Fix postman json for health notification (#673)
kayumuzzaman Aug 25, 2023
af4b3be
Fix certificate SVGs with if conditional for HEALTH_FACILITY
euanmillar Aug 25, 2023
50fa87a
Merge pull request #674 from opencrvs/restart-openhim
euanmillar Aug 25, 2023
2e43334
COnvert heading to HEADING3
euanmillar Aug 25, 2023
78694a9
Merge pull request #671 from opencrvs/address-mapping-refactor
euanmillar Aug 25, 2023
1478bde
Fix conflicts
euanmillar Aug 25, 2023
3810947
Merge pull request #667 from opencrvs/ocrvs-5562-form-validations
euanmillar Aug 25, 2023
9502c63
ocrvs-5827 email field type fix (#677)
Nil20 Aug 28, 2023
ee39dce
Rename seed vars, deprecate old secrets
euanmillar Aug 28, 2023
2066fe6
Revert IP mistake
euanmillar Aug 28, 2023
7da968a
Merge pull request #680 from opencrvs/optimise-seed-vars
euanmillar Aug 29, 2023
64c7fcf
ocrvs-5811 witness other relationship fix (#679)
Nil20 Aug 29, 2023
5bc3ff3
Change name VERSION to LABEL as per the restore script
euanmillar Aug 29, 2023
f8a27ec
ocrvs-5813 add correction id verifier message (#678)
Nil20 Aug 29, 2023
8dc49a4
Moved the place of event function
euanmillar Aug 30, 2023
08bf134
ocrvs-5807 change toast message when trying to create users offline (…
Nil20 Aug 31, 2023
441f2e7
Remove Cypress, DataGenerator, Rural & Urban address fields
euanmillar Sep 4, 2023
e24cd81
Fix query mapping for city in place of event
euanmillar Sep 4, 2023
a47350b
Fix query mapping for other fields
euanmillar Sep 4, 2023
f934275
Fix query mapping bug and renamed function
euanmillar Sep 4, 2023
551e864
Merge pull request #1 from opencrvs/update-default-address
euanmillar Sep 4, 2023
4c72189
Merge pull request #683 from opencrvs/move-place-of-address-function
rikukissa Sep 5, 2023
aab94e3
Extract openhim-core container name
Zangetsu101 Sep 5, 2023
2184ae9
Use '=' as separator to handle URLs
Zangetsu101 Sep 5, 2023
b8476f4
Make the grep a bit more lax
Zangetsu101 Sep 5, 2023
fd6db1a
Merge pull request #687 from opencrvs/generate-container-name
rikukissa Sep 6, 2023
28ff31e
Expect resource_already_exists exception
Zangetsu101 Sep 8, 2023
0c14c90
Merge pull request #689 from opencrvs/create-index-fix
euanmillar Sep 8, 2023
144d647
Remove public keys unused imports and reorder app setting
euanmillar Sep 8, 2023
93a58dd
Merge pull request #2 from opencrvs/update-default-address
euanmillar Sep 8, 2023
8ae800a
Provide credentials to elastalert
Zangetsu101 Sep 11, 2023
8831d07
Change user to kibana_user
Zangetsu101 Sep 11, 2023
4378425
Grant create_index privilege
Zangetsu101 Sep 11, 2023
8e3837b
Bring changes from Cameroon implementation
Zangetsu101 Sep 11, 2023
4d1c1fc
Use superuser for elastalert
Zangetsu101 Sep 11, 2023
49b4fdf
Remove extraneous files from infra on deploy
Zangetsu101 Sep 11, 2023
c914c62
Drop elastalert_status index on clear
Zangetsu101 Sep 11, 2023
1a57d4a
Revert "Drop elastalert_status index on clear"
Zangetsu101 Sep 11, 2023
9524594
validate translation script add
Sep 11, 2023
5403797
github action add for validate script
Sep 11, 2023
8fea58e
Merge pull request #688 from opencrvs/fix-sed
rikukissa Sep 11, 2023
cd93d15
Fix small but critical bug that prevented adding sections with id hav…
tahmidrahman-dsi Sep 11, 2023
e4d8bb4
Revert "Remove extraneous files from infra on deploy"
Zangetsu101 Sep 12, 2023
26a18c1
Update elastalert auth.yaml path
Zangetsu101 Sep 12, 2023
fcc7977
Bump up metricbeat patch version
Zangetsu101 Sep 12, 2023
f18dfd6
missing keys fix for login and notification
Sep 12, 2023
53e9090
type fix for json data
Sep 12, 2023
03ba46d
Fix typo and move clear command
euanmillar Sep 12, 2023
a5c1b5b
Add Excel templates to the repo to link from the docs
euanmillar Sep 12, 2023
425af91
Rename reqs gathering templates
euanmillar Sep 12, 2023
90776f5
Merge pull request #693 from opencrvs/move-clear-command
rikukissa Sep 13, 2023
1b05ceb
Add Riku's SSH pubkey
rikukissa Sep 18, 2023
ddc16de
Upgrade minio and add access logs
euanmillar Sep 18, 2023
dec9a4c
Add minio env vars
euanmillar Sep 18, 2023
93a7502
Setup Minio MC
euanmillar Sep 18, 2023
1db8c6b
Add volume to mc-configurator to persist config
euanmillar Sep 18, 2023
9c19288
copy mc config from infra folder
euanmillar Sep 18, 2023
38bf0e1
Update BirthCertificate.svg
jpye-finch Sep 18, 2023
0ed3b1f
Update DeathCertificate.svg
jpye-finch Sep 18, 2023
0c1ce21
Update MarriageCertificate.svg
jpye-finch Sep 18, 2023
1615283
Merge pull request #698 from opencrvs/marriage-certificate
euanmillar Sep 18, 2023
980b8c7
Merge pull request #697 from opencrvs/death-certificate
euanmillar Sep 18, 2023
0f6e014
Fix the issue with the wrong text substitution
euanmillar Sep 18, 2023
1ec9a9e
Merge pull request #696 from opencrvs/certificate-birth
euanmillar Sep 18, 2023
ce917c5
Add QR code to birth and death cert
euanmillar Sep 18, 2023
59b564e
Updated marriage cert
euanmillar Sep 18, 2023
c9429e3
Fix command
euanmillar Sep 18, 2023
f2ffbbe
Fix command
euanmillar Sep 18, 2023
5cc8109
Fix command
euanmillar Sep 18, 2023
8e0fe6f
Set docker network
euanmillar Sep 18, 2023
77b910d
Log only ocrvs bucket
euanmillar Sep 19, 2023
c33a81d
Rename minio mc service
euanmillar Sep 19, 2023
4fab022
Merge pull request #695 from opencrvs/upgrade-minio-and-log
euanmillar Sep 19, 2023
79868f7
Add renovate.json
renovate[bot] Sep 19, 2023
25a5e19
always use example.com domain for all generated email addresses
rikukissa Sep 20, 2023
946c90c
use built in options to change the provider
rikukissa Sep 20, 2023
e4c9d09
do not send emails to example.com
rikukissa Sep 20, 2023
4c096ca
Merge pull request #703 from opencrvs/example-email-domain
rikukissa Sep 20, 2023
c13d130
ocrvs-5906 primary address fields dependency fix (#701)
Nil20 Sep 20, 2023
e03bcb4
ocrvs-5907 address fields dependency fix (#699)
Nil20 Sep 20, 2023
1d9adfa
exchange JWT tokens via OAuth 2.0 (#700)
naftis Sep 20, 2023
e8f1b1f
ocrvs-5913 data generator death dec data fix (#694)
Nil20 Sep 20, 2023
0a8a976
updates to email templates to fix ui bugs
jpye-finch Sep 20, 2023
595017d
Fix conflicts with Farajaland
euanmillar Sep 21, 2023
b3ee310
Merge pull request #3 from opencrvs/farajaland-develop
euanmillar Sep 21, 2023
b201f7f
Merge pull request #692 from opencrvs/address-util-hot-fix
euanmillar Sep 22, 2023
5911b2f
Merge pull request #681 from opencrvs/update-backup-prop-name
euanmillar Sep 22, 2023
38c3e05
configure renovate
euanmillar Sep 22, 2023
1a06b16
Merge pull request #718 from opencrvs/renovate/configure
euanmillar Sep 22, 2023
1dc90e1
Update readme and content keys
euanmillar Sep 22, 2023
3eb95c2
birth reg section fix (#720)
Nil20 Sep 22, 2023
f130ee2
Merge branch 'develop' into fix-error-logs
Zangetsu101 Sep 22, 2023
92455db
Upgrade mongoose from 5.13.20 to 6.11.3
tahmidrahman-dsi Sep 26, 2023
6bb7f21
make national id a required field
naftis Sep 26, 2023
38f7b08
make national id required
naftis Sep 26, 2023
2609bff
Add caret
tahmidrahman-dsi Sep 26, 2023
b9e5830
Update yarn lock
tahmidrahman-dsi Sep 26, 2023
eb38018
Merge pull request #721 from opencrvs/upgrade-mongoose
tahmidrahman-dsi Sep 26, 2023
fde2737
Revert "Upgrade mongoose to v6.11.3"
tahmidrahman-dsi Sep 26, 2023
443537d
Merge pull request #723 from opencrvs/revert-721-upgrade-mongoose
tahmidrahman-dsi Sep 26, 2023
c002541
Upgrade mongoose to 6.11.3
tahmidrahman-dsi Sep 26, 2023
6b30b22
Merge pull request #724 from opencrvs/upgrade-mongoose-6.11.3
tahmidrahman-dsi Sep 26, 2023
2598d32
typo fix for correction
Sep 26, 2023
36080d7
add scripts for creating and restoring development snapshots
rikukissa Sep 27, 2023
3305085
Merge pull request #709 from opencrvs/email-ui-fixes
euanmillar Sep 28, 2023
952e2e6
Merge pull request #690 from opencrvs/fix-error-logs
euanmillar Sep 28, 2023
c126d04
Merge pull request #691 from opencrvs/ocrvs-5543
euanmillar Sep 28, 2023
be39a3f
Merge pull request #722 from opencrvs/required-nid
euanmillar Sep 28, 2023
c94c100
Merge pull request #726 from opencrvs/ocrvs-5961
euanmillar Sep 28, 2023
d3177a1
Refactor to allow parents and spouses details to be submitted in a de…
euanmillar Sep 28, 2023
e13cd54
comment out address fields
euanmillar Sep 28, 2023
7c2cf96
Comment out unused imports
euanmillar Sep 28, 2023
301d853
rename function
euanmillar Sep 29, 2023
4601b0d
Merge pull request #728 from opencrvs/spouse-mother-father-for-death
euanmillar Sep 29, 2023
bedde63
Pull in latest changes from Farajaland
euanmillar Sep 29, 2023
aa256e9
Merge pull request #4 from opencrvs/farajaland-develop
euanmillar Sep 29, 2023
8a9685e
add a port forwarding script for exposing deployed containers to loca…
rikukissa Oct 2, 2023
af5bbb7
Merge branch 'develop' of github.com:opencrvs/opencrvs-farajaland int…
rikukissa Oct 2, 2023
6308b63
remove infinite loop
rikukissa Oct 2, 2023
b3198de
Merge pull request #729 from opencrvs/port-forward
euanmillar Oct 2, 2023
6224e09
Fix conflict
euanmillar Oct 2, 2023
b9d6526
Fix conflict
euanmillar Oct 2, 2023
821d3c4
Merge pull request #727 from opencrvs/snapshot
euanmillar Oct 2, 2023
fb5736d
Update licence
euanmillar Oct 2, 2023
5c81826
Merge pull request #730 from opencrvs/bump-release-version
euanmillar Oct 2, 2023
1755844
Create script to publish images to Dockerhub
euanmillar Oct 2, 2023
5cbbd2b
Merge pull request #731 from opencrvs/bootdtrap-release-action
euanmillar Oct 2, 2023
29fbec1
fix release workflow from running on a merge
euanmillar Oct 2, 2023
99166f7
Merge pull request #732 from opencrvs/bootdtrap-release-action
euanmillar Oct 2, 2023
9413e35
Modify release action to build based on input
euanmillar Oct 2, 2023
21c65ad
Merge pull request #733 from opencrvs/bootdtrap-release-action
euanmillar Oct 2, 2023
28d152c
Test approver flow
euanmillar Oct 2, 2023
42d7612
Merge pull request #734 from opencrvs/bootdtrap-release-action
euanmillar Oct 2, 2023
dba4a73
Fix approval message
euanmillar Oct 2, 2023
db32c4c
Add Riku]
euanmillar Oct 2, 2023
1b8ad36
Merge pull request #736 from opencrvs/bootdtrap-release-action
euanmillar Oct 2, 2023
91596b9
Merge conflicts with farajaland develop
euanmillar Oct 2, 2023
457cc02
Merge pull request #5 from opencrvs/farajaland-develop
euanmillar Oct 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
115 changes: 115 additions & 0 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
name: Deploy(production)
run-name: Deploy to ${{ github.event.inputs.environment }} core=${{ github.event.inputs.core-image-tag }} country config=${{ github.event.inputs.countryconfig-image-tag }}
on:
workflow_dispatch:
inputs:
environment:
type: choice
description: Environment to deploy to
required: true
default: 'production'
options:
- production
core-image-tag:
description: Core DockerHub image tag
required: true
default: 'v1.3.0'
countryconfig-image-tag:
description: Your Country Config DockerHub image tag
required: true
deploy-script-environment:
type: choice
description: Deploy script environment
required: true
default: 'production'
options:
- production
- demo
jobs:
deploy:
environment: ${{ github.event.inputs.environment }}
runs-on: ubuntu-20.04
timeout-minutes: 60
strategy:
matrix:
node-version: [16.20.0]
steps:
- name: Clone core
uses: actions/checkout@v3
with:
fetch-depth: 0
repository: 'opencrvs/opencrvs-core'
path: './opencrvs-core'
- name: Clone country config resource package
uses: actions/checkout@v3
with:
fetch-depth: 0
path: './${{ github.event.repository.name }}'

- name: Checkout country branch
run: |
cd ${{ github.event.repository.name }}
git checkout ${{ github.event.inputs.countryconfig-image-tag }}
cd ../

- name: Checkout core branch
run: |
cd opencrvs-core
git checkout ${{ github.event.inputs.core-image-tag }}

- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Wait for images to be available
run: |
while true; do
if docker manifest inspect opencrvs/ocrvs-auth:${{ github.event.inputs.core-image-tag }}; then
break
fi
sleep 10
done
while true; do
if docker manifest inspect opencrvs/ocrvs-farajaland:${{ github.event.inputs.countryconfig-image-tag }}; then
break
fi
sleep 10
done


- name: Deploy to ${{ github.event.inputs.environment }}
env:
DOMAIN: ${{ vars.DOMAIN }}
REPLICAS: ${{ vars.REPLICAS }}
SMTP_PORT: ${{ secrets.SMTP_PORT }}
SMTP_HOST: ${{ secrets.SMTP_HOST }}
SMTP_USERNAME: ${{ secrets.SMTP_USERNAME }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
ALERT_EMAIL: ${{ secrets.ALERT_EMAIL }}
DOCKERHUB_ACCOUNT: ${{ secrets.DOCKERHUB_ACCOUNT }}
DOCKERHUB_REPO: ${{ secrets.DOCKERHUB_REPO }}
KIBANA_USERNAME: ${{ secrets.KIBANA_USERNAME }}
KIBANA_PASSWORD: ${{ secrets.KIBANA_PASSWORD }}
MONGODB_ADMIN_USER: ${{ secrets.MONGODB_ADMIN_USER }}
MONGODB_ADMIN_PASSWORD: ${{ secrets.MONGODB_ADMIN_PASSWORD }}
ELASTICSEARCH_SUPERUSER_PASSWORD: ${{ secrets.ELASTICSEARCH_SUPERUSER_PASSWORD }}
MINIO_ROOT_USER: ${{ secrets.MINIO_ROOT_USER }}
MINIO_ROOT_PASSWORD: ${{ secrets.MINIO_ROOT_PASSWORD }}
EMAIL_API_KEY: ${{ secrets.EMAIL_API_KEY }}
INFOBIP_SENDER_ID: ${{ secrets.INFOBIP_SENDER_ID }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
INFOBIP_GATEWAY_ENDPOINT: ${{ secrets.INFOBIP_GATEWAY_ENDPOINT }}
INFOBIP_API_KEY: ${{ secrets.INFOBIP_API_KEY }}
SENDER_EMAIL_ADDRESS: ${{ secrets.SENDER_EMAIL_ADDRESS }}
SUPER_USER_PASSWORD: ${{ secrets.SUPER_USER_PASSWORD }}
run: |
cd ./${{ github.event.repository.name }}
yarn deploy --clear_data=no --environment=${{ github.event.inputs.deploy-script-environment }} --host=${{ env.DOMAIN }} --version=${{ github.event.inputs.core-image-tag }} --country_config_version=${{ github.event.inputs.countryconfig-image-tag }} --country_config_path=../${{ github.event.repository.name }} --replicas=${{ env.REPLICAS }}
129 changes: 58 additions & 71 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Deploy

name: Deploy(development)
run-name: Deploy to ${{ github.event.inputs.environment }} with reset=${{ github.event.inputs.reset }} core=${{ github.event.inputs.core-image-tag }} country config=${{ github.event.inputs.countryconfig-image-tag }}
on:
workflow_dispatch:
inputs:
Expand All @@ -11,22 +11,31 @@ on:
options:
- staging
- qa
- production
core-image-tag:
description: Core DockerHub image tag
required: false
default: 'v1.2.0'
required: true
default: 'v1.3.0'
countryconfig-image-tag:
description: Your Country Config DockerHub image tag
required: true
reset:
type: choice
description: Whether to reset the environment
required: true
default: 'no'
options:
- 'yes'
- 'no'
jobs:
deploy:
environment: ${{ github.event.inputs.environment }}
runs-on: ubuntu-20.04
outputs:
outcome: ${{ steps.deploy.outcome }}
timeout-minutes: 60
strategy:
matrix:
node-version: [14.17.0]
node-version: [16.20.0]
steps:
- name: Clone core
uses: actions/checkout@v3
Expand All @@ -40,87 +49,50 @@ jobs:
fetch-depth: 0
path: './${{ github.event.repository.name }}'

- name: Set COUNTRY_CONFIG_VERSION from inputs
if: ${{ github.event.inputs.countryconfig-image-tag }}
- name: Checkout country branch
run: |
cd ${{ github.event.repository.name }}
echo "COUNTRY_CONFIG_VERSION=${{ github.event.inputs.countryconfig-image-tag }}" >> $GITHUB_ENV
git checkout ${{ github.event.inputs.countryconfig-image-tag }}
cd ../

- name: Set CORE_VERSION from inputs
if: ${{ github.event.inputs.core-image-tag }}
- name: Checkout core branch
run: |
cd opencrvs-core
git checkout ${{ github.event.inputs.core-image-tag }}
echo "CORE_VERSION=${{ github.event.inputs.core-image-tag }}" >> $GITHUB_ENV

- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }}

- name: Deploy to QA
if: ${{ github.event.inputs.environment == 'qa' }}
env:
QA_DOMAIN: ${{ secrets.QA_DOMAIN }}
FACTORY_RESET: ${{ secrets.FACTORY_RESET }}
REPLICAS: ${{ secrets.REPLICAS }}
SMTP_PORT: ${{ secrets.SMTP_PORT }}
SMTP_HOST: ${{ secrets.SMTP_HOST }}
SMTP_USERNAME: ${{ secrets.SMTP_USERNAME }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
ALERT_EMAIL: ${{ secrets.ALERT_EMAIL }}
DOCKERHUB_ACCOUNT: ${{ secrets.DOCKERHUB_ACCOUNT }}
DOCKERHUB_REPO: ${{ secrets.DOCKERHUB_REPO }}
KIBANA_USERNAME: ${{ secrets.KIBANA_USERNAME }}
KIBANA_PASSWORD: ${{ secrets.KIBANA_PASSWORD }}
MONGODB_ADMIN_USER: ${{ secrets.MONGODB_ADMIN_USER }}
MONGODB_ADMIN_PASSWORD: ${{ secrets.MONGODB_ADMIN_PASSWORD }}
ELASTICSEARCH_SUPERUSER_PASSWORD: ${{ secrets.ELASTICSEARCH_SUPERUSER_PASSWORD }}
MINIO_ROOT_USER: ${{ secrets.MINIO_ROOT_USER }}
MINIO_ROOT_PASSWORD: ${{ secrets.MINIO_ROOT_PASSWORD }}
run: |
cd opencrvs-core
bash deploy.sh --clear-data=${{ env.FACTORY_RESET }} --restore-metadata=${{ env.FACTORY_RESET }} qa ${{ env.QA_DOMAIN }} ${{ env.CORE_VERSION }} ${{ env.COUNTRY_CONFIG_VERSION }} ../${{ github.event.repository.name }} ${{ env.REPLICAS }}

- name: Deploy to production
if: ${{ github.event.inputs.environment == 'production' }}
env:
PRODUCTION_DOMAIN: ${{ secrets.PRODUCTION_DOMAIN }}
FACTORY_RESET: ${{ secrets.FACTORY_RESET }}
REPLICAS: ${{ secrets.REPLICAS }}
SMTP_PORT: ${{ secrets.SMTP_PORT }}
SMTP_HOST: ${{ secrets.SMTP_HOST }}
SMTP_USERNAME: ${{ secrets.SMTP_USERNAME }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
ALERT_EMAIL: ${{ secrets.ALERT_EMAIL }}
DOCKERHUB_ACCOUNT: ${{ secrets.DOCKERHUB_ACCOUNT }}
DOCKERHUB_REPO: ${{ secrets.DOCKERHUB_REPO }}
KIBANA_USERNAME: ${{ secrets.KIBANA_USERNAME }}
KIBANA_PASSWORD: ${{ secrets.KIBANA_PASSWORD }}
MONGODB_ADMIN_USER: ${{ secrets.MONGODB_ADMIN_USER }}
MONGODB_ADMIN_PASSWORD: ${{ secrets.MONGODB_ADMIN_PASSWORD }}
ELASTICSEARCH_SUPERUSER_PASSWORD: ${{ secrets.ELASTICSEARCH_SUPERUSER_PASSWORD }}
MINIO_ROOT_USER: ${{ secrets.MINIO_ROOT_USER }}
MINIO_ROOT_PASSWORD: ${{ secrets.MINIO_ROOT_PASSWORD }}
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}

- name: Wait for images to be available
run: |
cd opencrvs-core
bash deploy.sh --clear-data=${{ env.FACTORY_RESET }} --restore-metadata=${{ env.FACTORY_RESET }} production ${{ env.PRODUCTION_DOMAIN }} ${{ env.CORE_VERSION }} ${{ env.COUNTRY_CONFIG_VERSION }} ../${{ github.event.repository.name }} ${{ env.REPLICAS }}
while true; do
if docker manifest inspect opencrvs/ocrvs-auth:${{ github.event.inputs.core-image-tag }}; then
break
fi
sleep 10
done
while true; do
if docker manifest inspect opencrvs/ocrvs-farajaland:${{ github.event.inputs.countryconfig-image-tag }}; then
break
fi
sleep 10
done


- name: Deploy to staging
if: ${{ github.event.inputs.environment == 'staging' }}
- name: Deploy to ${{ github.event.inputs.environment }}
id: deploy
env:
STAGING_DOMAIN: ${{ secrets.STAGING_DOMAIN }}
FACTORY_RESET: ${{ secrets.FACTORY_RESET }}
REPLICAS: ${{ secrets.REPLICAS }}
DOMAIN: ${{ vars.DOMAIN }}
REPLICAS: ${{ vars.REPLICAS }}
SMTP_PORT: ${{ secrets.SMTP_PORT }}
SMTP_HOST: ${{ secrets.SMTP_HOST }}
SMTP_USERNAME: ${{ secrets.SMTP_USERNAME }}
Expand All @@ -135,6 +107,21 @@ jobs:
ELASTICSEARCH_SUPERUSER_PASSWORD: ${{ secrets.ELASTICSEARCH_SUPERUSER_PASSWORD }}
MINIO_ROOT_USER: ${{ secrets.MINIO_ROOT_USER }}
MINIO_ROOT_PASSWORD: ${{ secrets.MINIO_ROOT_PASSWORD }}
EMAIL_API_KEY: ${{ secrets.EMAIL_API_KEY }}
INFOBIP_SENDER_ID: ${{ secrets.INFOBIP_SENDER_ID }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
INFOBIP_GATEWAY_ENDPOINT: ${{ secrets.INFOBIP_GATEWAY_ENDPOINT }}
INFOBIP_API_KEY: ${{ secrets.INFOBIP_API_KEY }}
SENDER_EMAIL_ADDRESS: ${{ secrets.SENDER_EMAIL_ADDRESS }}
SUPER_USER_PASSWORD: ${{ secrets.SUPER_USER_PASSWORD }}
run: |
cd opencrvs-core
bash deploy.sh --clear-data=${{ env.FACTORY_RESET }} --restore-metadata=${{ env.FACTORY_RESET }} development ${{ env.STAGING_DOMAIN }} ${{ env.CORE_VERSION }} ${{ env.COUNTRY_CONFIG_VERSION }} ../${{ github.event.repository.name }} ${{ env.REPLICAS }}
cd ./${{ github.event.repository.name }}
yarn deploy --clear_data=${{ github.event.inputs.reset }} --environment=${{ github.event.inputs.environment }} --host=${{ env.DOMAIN }} --version=${{ github.event.inputs.core-image-tag }} --country_config_version=${{ github.event.inputs.countryconfig-image-tag }} --country_config_path=../${{ github.event.repository.name }} --replicas=${{ env.REPLICAS }}
seed-data:
needs: deploy
if: ${{ github.event.inputs.reset == 'yes' && needs.deploy.outputs.outcome == 'success' }}
uses: ./.github/workflows/seed-data.yml
with:
environment: ${{ github.event.inputs.environment }}
core-image-tag: ${{ github.event.inputs.core-image-tag }}
secrets: inherit
17 changes: 6 additions & 11 deletions .github/workflows/generate-demo-data.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
# OpenCRVS is also distributed under the terms of the Civil Registration
# & Healthcare Disclaimer located at http://opencrvs.org/license.
#
# Copyright (C) The OpenCRVS Authors. OpenCRVS and the OpenCRVS
# graphic logo are (registered/a) trademark(s) of Plan International.
# Copyright (C) The OpenCRVS Authors located at https://github.com/opencrvs/opencrvs-core/blob/master/AUTHORS.
name: Generate demo data

on:
Expand All @@ -16,9 +15,6 @@ on:
description: 'Branch to run from'
required: false
default: 'develop'
districts:
description: 'District ids separated by comma'
required: false
environment:
type: choice
description: Environment to deploy to
Expand All @@ -45,9 +41,8 @@ jobs:
- name: Start generating test data
run: yarn data-generator
env:
DISTRICTS: ${{ github.event.inputs.districts }}
COUNTRY_CONFIG_HOST: ${{ secrets.COUNTRY_CONFIG_HOST }}
AUTH_API_HOST: ${{ secrets.AUTH_API_HOST }}
GATEWAY_HOST: ${{ secrets.GATEWAY_HOST }}
CONFIG_HOST: ${{ secrets.CONFIG_HOST }}
CONCURRENCY: ${{ secrets.CONCURRENCY }}
COUNTRY_CONFIG_HOST: ${{ vars.COUNTRY_CONFIG_HOST }}
AUTH_HOST: ${{ vars.AUTH_HOST }}
GATEWAY_HOST: ${{ vars.GATEWAY_HOST }}
CONFIG_HOST: ${{ vars.CONFIG_HOST }}
CONCURRENCY: ${{ vars.CONCURRENCY }}
44 changes: 44 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Publish release

on:
workflow_dispatch:
inputs:
branch_name:
description: Branch to build from
default: develop
required: true
release_version:
description: Release version number
required: true

jobs:
base:
runs-on: ubuntu-latest
steps:
- uses: trstringer/manual-approval@v1
with:
secret: ${{ github.TOKEN }}
approvers: euanmillar,rikukissa
minimum-approvals: 1
issue-title: "Release: ${{ github.event.inputs.release_version }}"
issue-body: "Please approve or deny the publishing of release: ${{ github.event.inputs.release_version }} to Dockerhub"
exclude-workflow-initiator-as-approver: false
- uses: actions/checkout@v2
if: github.event_name == 'workflow_dispatch'
with:
ref: '${{ github.event.inputs.branch_name }}'
- uses: actions/checkout@v2
if: github.event_name == 'push'
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Push image
env:
DOCKERHUB_ACCOUNT: ${{ secrets.DOCKERHUB_ACCOUNT }}
DOCKERHUB_REPO: ${{ secrets.DOCKERHUB_REPO }}
run: |
export COUNTRY_CONFIG_VERSION=${{ github.event.inputs.release_version }}
echo "Publishing a Docker image with a tag $COUNTRY_CONFIG_VERSION"
bash build-and-push.sh && unset COUNTRY_CONFIG_VERSION
Loading
Loading