Skip to content

Commit

Permalink
Updating the github actions to be compatible with Java 21
Browse files Browse the repository at this point in the history
  • Loading branch information
alog-enquizit committed Sep 24, 2024
1 parent a7261eb commit cc576cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/Build-and-deploy-reporting-services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
microservice_name: data-reporting-service/person-reporting-service
dockerfile_relative_path: -f ./person-service/Dockerfile .
environment_classifier: SNAPSHOT
java_version: "17"
java_version: "21"
secrets:
CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID: ${{secrets.CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID}}
ECR_REPO_BASE_NAME: ${{secrets.ECR_REPO_BASE_NAME}}
Expand Down Expand Up @@ -54,7 +54,7 @@ jobs:
microservice_name: data-reporting-service/organization-reporting-service
dockerfile_relative_path: -f ./organization-service/Dockerfile .
environment_classifier: SNAPSHOT
java_version: "17"
java_version: "21"
secrets:
CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID: ${{secrets.CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID}}
ECR_REPO_BASE_NAME: ${{secrets.ECR_REPO_BASE_NAME}}
Expand Down Expand Up @@ -82,7 +82,7 @@ jobs:
microservice_name: data-reporting-service/investigation-reporting-service
dockerfile_relative_path: -f ./investigation-service/Dockerfile .
environment_classifier: SNAPSHOT
java_version: "17"
java_version: "21"
secrets:
CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID: ${{secrets.CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID}}
ECR_REPO_BASE_NAME: ${{secrets.ECR_REPO_BASE_NAME}}
Expand Down Expand Up @@ -110,7 +110,7 @@ jobs:
microservice_name: data-reporting-service/post-processing-reporting-service
dockerfile_relative_path: -f ./post-processing-service/Dockerfile .
environment_classifier: SNAPSHOT
java_version: "17"
java_version: "21"
secrets:
CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID: ${{secrets.CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID}}
ECR_REPO_BASE_NAME: ${{secrets.ECR_REPO_BASE_NAME}}
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
microservice_name: data-reporting-service/observation-reporting-service
dockerfile_relative_path: -f ./observation-service/Dockerfile .
environment_classifier: SNAPSHOT
java_version: "17"
java_version: "21"
secrets:
CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID: ${{secrets.CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID}}
ECR_REPO_BASE_NAME: ${{secrets.ECR_REPO_BASE_NAME}}
Expand Down Expand Up @@ -166,7 +166,7 @@ jobs:
microservice_name: data-reporting-service/ldfdata-reporting-service
dockerfile_relative_path: -f ./ldfdata-service/Dockerfile .
environment_classifier: SNAPSHOT
java_version: "17"
java_version: "21"
secrets:
CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID: ${{secrets.CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID}}
ECR_REPO_BASE_NAME: ${{secrets.ECR_REPO_BASE_NAME}}
Expand Down Expand Up @@ -194,7 +194,7 @@ jobs:
microservice_name: liquibase-service
dockerfile_relative_path: -f ./liquibase-service/Dockerfile .
environment_classifier: SNAPSHOT
java_version: "17"
java_version: "21"
secrets:
CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID: ${{secrets.CDC_NBS_SANDBOX_SHARED_SERVICES_ACCOUNTID}}
ECR_REPO_BASE_NAME: ${{secrets.ECR_NBS_REPO_BASE_NAME}}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sonar.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ jobs:
with:
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis

- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: 17
java-version: 21
distribution: 'zulu' # Alternative distribution options are available

- name: Cache SonarCloud packages
Expand Down

0 comments on commit cc576cb

Please sign in to comment.