-
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 pull request #3842 from bcgov/5.0.1-73.35-hotfix
5.0.1 73.35 hotfix
- Loading branch information
Showing
2,226 changed files
with
426,517 additions
and
55,420 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: API (.NET 6) | ||
name: API (.NET 8) | ||
|
||
on: | ||
push: | ||
|
@@ -39,10 +39,10 @@ jobs: | |
run: echo "branch=$(echo ${GITHUB_REF#refs/heads/})" >> $GITHUB_OUTPUT | ||
id: extract_branch | ||
|
||
- name: Setup .NET 6 | ||
- name: Setup .NET 8 | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: "6.0.x" | ||
dotnet-version: "8.0.x" | ||
|
||
- name: Install dependencies | ||
run: dotnet restore | ||
|
@@ -120,7 +120,7 @@ jobs: | |
# Specify whether or not CI build should fail if Codecov runs into an error during upload | ||
fail_ci_if_error: true | ||
|
||
- name: SonarScanner for .NET 6 with pull request decoration support | ||
- name: SonarScanner for .NET 8 with pull request decoration support | ||
id: scan | ||
uses: highbyte/[email protected] | ||
if: ${{ github.event_name == 'push' }} | ||
|
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Keycloak Sync | ||
env: | ||
OPENSHIFT_TOOLS_NAMESPACE: "3cd915-tools" | ||
MS_TEAMS_WEBHOOK_BUILD_CHANNEL: ${{ secrets.MS_TEAMS_WEBHOOK_URI_BUILD_CHANNEL }} | ||
AUTH__KEYCLOAK__SECRET: ${{ secrets.KEYCLOAK_SECRET }} | ||
AUTH__KEYCLOAK__SERVICEACCOUNT__SECRET: ${{ secrets.KEYCLOAK_SERVICEACCOUNT_SECRET }} | ||
sync-directory: ./tools/keycloak/sync | ||
ASPNETCORE_ENVIRONMENT: "Development" | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
sync-keycloak: | ||
name: Sync Keycloak | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup .NET 8 | ||
uses: actions/setup-dotnet@v3 | ||
with: | ||
dotnet-version: "8.0.x" | ||
|
||
- name: Install dependencies for keycloak sync | ||
run: dotnet restore | ||
working-directory: ${{env.sync-directory}} | ||
|
||
- name: Build keycloak sync | ||
run: dotnet build | ||
working-directory: ${{env.sync-directory}} | ||
|
||
- name: Start keycloak sync | ||
run: dotnet run | ||
working-directory: ${{env.sync-directory}} |
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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Mayan Sync | ||
env: | ||
OPENSHIFT_SERVER: ${{ secrets.OPENSHIFT_SERVER }} | ||
# service account: gitaction | ||
OPENSHIFT_TOKEN: ${{ secrets.OPENSHIFT_TOKEN }} | ||
OPENSHIFT_TOOLS_NAMESPACE: "3cd915-dev" | ||
MS_TEAMS_WEBHOOK_BUILD_CHANNEL: ${{ secrets.MS_TEAMS_WEBHOOK_URI_BUILD_CHANNEL }} | ||
AUTH__KEYCLOAK__SECRET: ${{ secrets.KEYCLOAK_SECRET }} | ||
ASPNETCORE_ENVIRONMENT: "Development" | ||
|
||
## variables for scripts under git\openshift\4.0\scripts\oc-*.sh | ||
APP_PORT: 8080 | ||
DESTINATION: "dev" | ||
OC_JOB_NAME: "dev" | ||
GIT_URL: "${{github.server_url}}/${{github.repository}}" | ||
GIT_BRANCH: "${{github.ref}}" | ||
APP_NAME: "pims" | ||
PROJ_PREFIX: "3cd915" | ||
PROJ_TOOLS: "3cd915-tools" | ||
PROJ_DEV: "dev" | ||
PROJ_TEST: "test" | ||
PROJ_PROD: "prod" | ||
TAG_DEV: "dev" | ||
TAG_TEST: "test" | ||
TAG_PROD: "prod" | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
## Call the mayan sync task three times, once for each mayan sync endpoint. The task will wait for the job to complete before exiting. | ||
## Note: this depends on the mayan-sync configmap for the target namespace being up to date. | ||
jobs: | ||
mayan-sync: | ||
name: mayan-sync | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Source Code | ||
uses: actions/checkout@v3 | ||
- name: Login to OpenShift | ||
uses: redhat-actions/oc-login@v1 | ||
with: | ||
openshift_server_url: ${{ env.OPENSHIFT_SERVER }} | ||
openshift_token: ${{ env.OPENSHIFT_TOKEN }} | ||
insecure_skip_tls_verify: true | ||
namespace: 3cd915-dev | ||
- name: call scripts to sync mayan | ||
shell: bash | ||
run: | | ||
oc process -f ./openshift/4.0/templates/jobs/mayan-sync.yaml -p NAMESPACE=3cd915-dev -p TOKEN_URL=https://dev.loginproxy.gov.bc.ca:443/auth/realms/standard/protocol/openid-connect/token -p CLIENT_ID=property-services-project-api-dev-only-4700 -p MAYAN_SYNC_URL=https://pims-app-3cd915-dev.apps.silver.devops.gov.bc.ca:443/api/documents/sync/mayan/metadatatype -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-dev -p TOKEN_URL=https://dev.loginproxy.gov.bc.ca:443/auth/realms/standard/protocol/openid-connect/token -p CLIENT_ID=property-services-project-api-dev-only-4700 -p MAYAN_SYNC_URL=https://pims-app-3cd915-dev.apps.silver.devops.gov.bc.ca:443/api/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-dev -p TOKEN_URL=https://dev.loginproxy.gov.bc.ca:443/auth/realms/standard/protocol/openid-connect/token -p CLIENT_ID=property-services-project-api-dev-only-4700 -p MAYAN_SYNC_URL=https://pims-app-3cd915-dev.apps.silver.devops.gov.bc.ca:443/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) |
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
Oops, something went wrong.