-
Notifications
You must be signed in to change notification settings - Fork 24
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
add automatic db deployment to test, uat. add keycloak sync to uat. update action definitions to allow for env specific secrets for keycloak sync. #3573
Conversation
✅ No secrets were detected in the code. |
secret creation covered by: https://jira.th.gov.bc.ca/browse/PSP-7200 |
884dc5a
to
078f562
Compare
✅ No secrets were detected in the code. |
.github/workflows/ci-cd-pims-dev.yml
Outdated
@@ -123,7 +123,7 @@ jobs: | |||
- name: call scripts to upgrade database | |||
shell: bash | |||
run: | | |||
oc process -f ./openshift/4.0/templates/jobs/db-deploy.yaml -p SERVER_NAME=sqldevtst.th.gov.bc.ca -p DB_NAME=PIMS_DEV -p NAMESPACE=3cd915-dev | oc create -f - | grep -oP "(?<=job\.batch/)[^\s]*" | (read JOB_NAME; oc wait --for=condition=complete job/$JOB_NAME --timeout=120s) | |||
oc process -f ./openshift/4.0/templates/jobs/db-deploy.yaml -p DB_SECRET_NAME=pims-database GIT_BRANCH=dev SERVER_NAME=sqldevtst.th.gov.bc.ca -p DB_NAME=PIMS_DEV -p NAMESPACE=3cd915-dev | oc create -f - | grep -oP "(?<=job\.batch/)[^\s]*" | (read JOB_NAME; oc wait --for=condition=complete job/$JOB_NAME --timeout=120s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you test this on OCP? According to OC documentation, template parameters need to be listed each with -p
but I see this oc process ... -p DB_SECRET_NAME=... [-p needed here?] GIT_BRANCH=dev ...
I think you need to add -p in front of GIT_BRANCH and SERVER_NAME parameters - right? or does it work without it?
oc process -f ./openshift/4.0/templates/jobs/db-deploy.yaml -p DB_SECRET_NAME=pims-database-test GIT_BRANCH=dev SERVER_NAME=sqldevtst.th.gov.bc.ca -p DB_NAME=PIMS_TST -p NAMESPACE=3cd915-dev | oc create -f - | grep -oP "(?<=job\.batch/)[^\s]*" | (read JOB_NAME; oc wait --for=condition=complete job/$JOB_NAME --timeout=120s) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment re: -p
applies here
- name: call scripts to upgrade database | ||
shell: bash | ||
run: | | ||
oc process -f ./openshift/4.0/templates/jobs/db-deploy.yaml -p DB_SECRET_NAME=pims-database GIT_BRANCH=test SERVER_NAME=sqlprd.th.gov.bc.ca -p DB_NAME=PIMS_UAT -p NAMESPACE=3cd915-test | oc create -f - | grep -oP "(?<=job\.batch/)[^\s]*" | (read JOB_NAME; oc wait --for=condition=complete job/$JOB_NAME --timeout=120s) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please check usage of -p
here
- name: Install dependencies for keycloak sync | ||
run: dotnet restore | ||
working-directory: ${{env.sync-directory}} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The env-var sync-directory: ./tools/keycloak/sync is not present in this file like the others above. Please add it or kc-sync will fail in UAT
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comments
5f6048e
to
23c0751
Compare
✅ No secrets were detected in the code. |
1 similar comment
✅ No secrets were detected in the code. |
Codecov Report
@@ Coverage Diff @@
## dev #3573 +/- ##
==========================================
- Coverage 69.57% 63.47% -6.11%
==========================================
Files 1370 472 -898
Lines 33716 15141 -18575
Branches 6270 1026 -5244
==========================================
- Hits 23458 9610 -13848
+ Misses 10007 5280 -4727
Partials 251 251
Flags with carried forward coverage won't be shown. Click here to find out more.
|
23c0751
to
1710e3a
Compare
1710e3a
to
119849f
Compare
✅ No secrets were detected in the code. |
1 similar comment
✅ No secrets were detected in the code. |
No description provided.