-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into features/psp-8573
- Loading branch information
Showing
66 changed files
with
813 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,7 @@ on: | |
jobs: | ||
ci-cd-start-notification: | ||
name: CI-CD Start Notification to Teams Channel | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Start notification to Teams Channel | ||
uses: dragos-cojocari/[email protected] | ||
|
@@ -46,7 +46,7 @@ jobs: | |
build-frontend: | ||
name: Build frontend | ||
needs: ci-cd-start-notification | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v4 | ||
|
@@ -65,7 +65,7 @@ jobs: | |
build-api: | ||
name: Build api | ||
needs: ci-cd-start-notification | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v4 | ||
|
@@ -85,7 +85,7 @@ jobs: | |
deploy: | ||
name: Deploy to OpenShift | ||
needs: [build-frontend, build-api] | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v4 | ||
|
@@ -132,7 +132,7 @@ jobs: | |
database-upgrade: | ||
name: Upgrade database | ||
needs: [deploy] | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v4 | ||
|
@@ -155,7 +155,7 @@ jobs: | |
mayan-sync: | ||
name: sync mayan | ||
needs: database-upgrade | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v4 | ||
|
@@ -177,7 +177,7 @@ jobs: | |
keycloak-sync: | ||
name: sync keycloak | ||
needs: database-upgrade | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v4 | ||
|
@@ -195,7 +195,7 @@ jobs: | |
ci-cd-end-notification: | ||
name: CI-CD End Notification to Teams Channel | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
needs: keycloak-sync | ||
steps: | ||
- name: check workflow status | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,7 +35,7 @@ on: | |
jobs: | ||
ci-cd-start-notification: | ||
name: CI-CD Start Notification to Teams Channel | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Start notification to Teams Channel | ||
uses: dragos-cojocari/[email protected] | ||
|
@@ -48,7 +48,7 @@ jobs: | |
|
||
deploy: | ||
name: Deploy frontend and api to OpenShift | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
needs: ci-cd-start-notification | ||
steps: | ||
- name: Checkout Source Code | ||
|
@@ -94,7 +94,7 @@ jobs: | |
database-upgrade: | ||
name: Upgrade database | ||
needs: [deploy] | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v4 | ||
|
@@ -117,7 +117,7 @@ jobs: | |
mayan-sync: | ||
name: sync mayan | ||
needs: database-upgrade | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v4 | ||
|
@@ -139,7 +139,7 @@ jobs: | |
keycloak-sync: | ||
name: sync keycloak | ||
needs: database-upgrade | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v4 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ on: | |
jobs: | ||
ci-cd-start-notification: | ||
name: CI-CD Start Notification to Teams Channel | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Start notification to Teams Channel | ||
uses: dragos-cojocari/[email protected] | ||
|
@@ -47,7 +47,7 @@ jobs: | |
|
||
deploy: | ||
name: Deploy frontend and api to OpenShift | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
needs: ci-cd-start-notification | ||
steps: | ||
- name: Checkout Source Code | ||
|
@@ -84,7 +84,7 @@ jobs: | |
database-upgrade: | ||
name: Upgrade database | ||
needs: [deploy] | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v4 | ||
|
@@ -107,7 +107,7 @@ jobs: | |
mayan-sync: | ||
name: sync mayan | ||
needs: database-upgrade | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v4 | ||
|
@@ -125,11 +125,11 @@ jobs: | |
oc process -f ./openshift/4.0/templates/jobs/mayan-sync.yaml -p NAMESPACE=3cd915-prod -p TOKEN_URL=https://loginproxy.gov.bc.ca:443/auth/realms/standard/protocol/openid-connect/token -p CLIENT_ID=property-services-project-api-4380 -p MAYAN_SYNC_URL=https://pims-app-3cd915-prod.apps.silver.devops.gov.bc.ca/documents/sync/documenttype -p KEYCLOAK_SECRET_NAME=pims-api-sso | oc create -f - | grep -oP "(?<=\/)[^\s]*" | (read TASK_NAME; oc wait --for=condition=succeeded taskruns/$TASK_NAME --timeout=80s) | ||
oc process -f ./openshift/4.0/templates/jobs/mayan-sync.yaml -p NAMESPACE=3cd915-prod -p TOKEN_URL=https://loginproxy.gov.bc.ca:443/auth/realms/standard/protocol/openid-connect/token -p CLIENT_ID=property-services-project-api-4380 -p MAYAN_SYNC_URL=https://pims-app-3cd915-prod.apps.silver.devops.gov.bc.ca/api/documents/sync/mayan -p KEYCLOAK_SECRET_NAME=pims-api-sso | oc create -f - | grep -oP "(?<=\/)[^\s]*" | (read TASK_NAME; oc wait --for=condition=succeeded taskruns/$TASK_NAME --timeout=80s) | ||
## Call the tekton pipeline that executes the keycloak sync. Dependent on the pims-api being accessible. Can run in parallel with the mayan sync. | ||
## Call the tekton pipeline that executes the keycloak sync. Dependent on the pims-api being accessible. Can run in parallel with the mayan sync. | ||
keycloak-sync: | ||
name: sync keycloak | ||
needs: database-upgrade | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v4 | ||
|
@@ -144,4 +144,3 @@ jobs: | |
shell: bash | ||
run: | | ||
oc process -f ./openshift/4.0/templates/jobs/keycloak-sync-pipeline-run.yaml -p ASPNETCORE_ENVIRONMENT=$ASPNETCORE_ENVIRONMENT -p NAMESPACE=3cd915-prod -p BRANCH=$DESTINATION -p API_URL=http://pims-api:8080/api | oc create -f - | grep -oP "(?<=\/)[^\s]*" | (read PIPELINE_NAME; oc wait --for=condition=succeeded pipelineruns/$PIPELINE_NAME --timeout=500s) | ||
Oops, something went wrong.