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

MOSIP-33013 Java 21 migration changes #122

Merged
merged 35 commits into from
Aug 26, 2024
Merged
Show file tree
Hide file tree
Changes from 34 commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
1cb693d
[MOSIP-29211] Updated Workflow as per Reusable Template with release-…
VSIVAKALYAN Sep 21, 2023
910ed85
[MOSIP-29211] Added Secrets in Tag & release-changes. (#53)
VSIVAKALYAN Sep 22, 2023
6f962cf
[MOSIP-29211] Updated clear-artifacts.yml (#55)
VSIVAKALYAN Sep 26, 2023
03d26e7
[MOSIP-29245] Added chart-lint-publish.yml (#58)
syedsalman3753 Oct 19, 2023
24bdd64
[DSD-3708] updated resources in values.yml
Prafulrakhade Oct 26, 2023
85123ef
[MOSIP-29850] Updated postgres key for latest postgres version. (#62)
Mohanraj209 Nov 9, 2023
761a8f9
[MOSIP-29918] added db-test.yml (#64)
Rakshithb1 Nov 15, 2023
8e42cf4
removed whitespce in application-local1.properties (#67)
dhanendra06 Nov 22, 2023
c02b7b7
Updated vc-verifier dependency
dhanendra06 Nov 23, 2023
a1625cb
[DSD-3919] Updated chart-lint-publish.yml (#70)
VSIVAKALYAN Nov 29, 2023
1317ca7
[MOSIP-30459] updated init_db path (#73)
Prafulrakhade Dec 4, 2023
281ae1e
[MOSIP-29961] removed paths from db-test.yml (#78)
Rakshithb1 Dec 15, 2023
995cf35
[DSD-4849] updated chart version to 0.0.1-SNAPSHOT (#92)
Rakshitha650 May 7, 2024
451f9e2
[DSD-5362] hostname fix in init_values.yaml (#94)
shubham17998 May 28, 2024
87e4cbe
[MOSIP-33402] Updated chart-lint-publish.yml
Prafulrakhade Jun 6, 2024
69575c8
Migration Changes (#93)
yashmsonkusare Jun 5, 2024
20f031a
Update Dockerfile (#97)
yashmsonkusare Jun 5, 2024
5438154
Update bootstrap.properties (#104)
yashmsonkusare Jun 20, 2024
63ccbd1
MOSIP-33013 Update pom.xml (#108)
yashmsonkusare Jun 28, 2024
4658087
MOSIP-33013 Update Dockerfile
yashmsonkusare Jun 25, 2024
04eaa73
Added logback file (#109)
dhanendra06 Jul 4, 2024
5bd329d
MOSIP-33013 (#112)
dhanendra06 Jul 11, 2024
c0ab6e8
MOSIP-33013: Added logger (#113)
dhanendra06 Jul 11, 2024
0853a53
MOSIP-33013 (#114)
dhanendra06 Jul 11, 2024
da697bb
Added logger (#115)
dhanendra06 Jul 11, 2024
7231022
MOSIP-33013 (#116)
dhanendra06 Jul 12, 2024
a41d128
MOSIP-33013 Update RestClient.java (#117)
yashmsonkusare Aug 6, 2024
77dd16c
MOSIP-33013 Update RestClient.java (#118)
yashmsonkusare Aug 6, 2024
ecdbd25
MOSIP-33013 Update pom.xml (#121)
yashmsonkusare Aug 23, 2024
3c90cb1
Update DigitalCardServiceImpl.java
yashmsonkusare Aug 26, 2024
7501dd6
Update bootstrap.properties
yashmsonkusare Aug 26, 2024
cc9f4db
Update bootstrap.properties
yashmsonkusare Aug 26, 2024
7059bb4
Update pom.xml
yashmsonkusare Aug 26, 2024
b120e5f
Update TemplateGenerator.java
yashmsonkusare Aug 26, 2024
2cd1bdc
Merge branch 'develop' into develop
yashmsonkusare Aug 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
62 changes: 62 additions & 0 deletions .github/workflows/chart-lint-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
name: Validate / Publish helm charts

on:
release:
types: [published]
pull_request:
types: [opened, reopened, synchronize]
paths:
- 'helm/**'
workflow_dispatch:
inputs:
IGNORE_CHARTS:
description: 'Provide list of charts to be ignored separated by pipe(|)'
required: false
default: ''
type: string
CHART_PUBLISH:
description: 'Chart publishing to gh-pages branch'
required: false
default: 'NO'
type: string
options:
- YES
- NO
INCLUDE_ALL_CHARTS:
description: 'Include all charts for Linting/Publishing (YES/NO)'
required: false
default: 'NO'
type: string
options:
- YES
- NO
push:
branches:
- '!release-branch'
- master
- 1.*
- 0.*
- develop
- MOSIP*
- release*
paths:
- './helm/**'

jobs:
chart-lint-publish:
uses: mosip/kattu/.github/workflows/chart-lint-publish.yml@master
with:
CHARTS_DIR: ./helm
CHARTS_URL: https://mosip.github.io/mosip-helm
REPOSITORY: mosip-helm
BRANCH: gh-pages
INCLUDE_ALL_CHARTS: "${{ inputs.INCLUDE_ALL_CHARTS || 'NO' }}"
IGNORE_CHARTS: "${{ inputs.IGNORE_CHARTS ||'redis' }}"
CHART_PUBLISH: "${{ inputs.CHART_PUBLISH || 'YES' }}"
LINTING_CHART_SCHEMA_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/chart-schema.yaml"
LINTING_LINTCONF_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/lintconf.yaml"
LINTING_CHART_TESTING_CONFIG_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/chart-testing-config.yaml"
LINTING_HEALTH_CHECK_SCHEMA_YAML_URL: "https://raw.githubusercontent.com/mosip/kattu/master/.github/helm-lint-configs/health-check-schema.yaml"
secrets:
TOKEN: ${{ secrets.ACTION_PAT }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
17 changes: 17 additions & 0 deletions .github/workflows/clear-artifacts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: 'Delete old artifacts'
on:
schedule:
- cron: '0 * * * *' # every hour
workflow_dispatch:
inputs:
message:
description: 'Message for manually triggering'
required: false
default: 'Triggered for Updates'
type: string
jobs:
delete-artifacts:
uses: mosip/kattu/.github/workflows/clear-artifacts.yml@master
secrets:
ACCESS_TOKEN: ${{ secrets.access_token }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
13 changes: 0 additions & 13 deletions .github/workflows/clear_artifacts.yml

This file was deleted.

37 changes: 37 additions & 0 deletions .github/workflows/db-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: PostgreSQL Test

on:
release:
types: [published]
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
inputs:
message:
description: 'Message for manually triggering'
required: false
default: 'Triggered for Updates'
type: string
push:
branches:
- '!release-branch'
- release*
- master
- 1.*
- develop*
- MOSIP*
paths:
- 'db_scripts/**'

jobs:
build-db-test:
strategy:
matrix:
include:
- DB_LOCATION: 'db_scripts/mosip_digitalcard'
DB_NAME: 'mosip_digitalcard'
fail-fast: false
name: ${{ matrix.DB_NAME }}
uses: mosip/kattu/.github/workflows/db-test.yml@master-java21
with:
DB_LOCATION: ${{ matrix.DB_LOCATION}}
83 changes: 0 additions & 83 deletions .github/workflows/postgres-init_trigger.yml

This file was deleted.

119 changes: 119 additions & 0 deletions .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
name: Maven Package upon a push

on:
release:
types: [published]
pull_request:
types: [opened, reopened, synchronize]
workflow_dispatch:
inputs:
message:
description: 'Message for manually triggering'
required: false
default: 'Triggered for Updates'
type: string
push:
branches:
- '!release-branch'
- master
- 1.*
- develop*
- MOSIP*
- release*

jobs:
build-maven-digitalcard:
uses: mosip/kattu/.github/workflows/maven-build.yml@master-java21
with:
SERVICE_LOCATION: ./
BUILD_ARTIFACT: digital-card-service
secrets:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

publish_to_nexus:
if: "${{ !contains(github.ref, 'master') && github.event_name != 'pull_request' }}"
needs: build-maven-digitalcard
uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master-java21
with:
SERVICE_LOCATION: ./
secrets:
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_URL: ${{ secrets.OSSRH_SNAPSHOT_URL }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

## Recreate zips to provide support for docker unzip operation
recreate-zips:
needs: build-maven-digitalcard
runs-on: ubuntu-latest
env:
BUILD_ARTIFACT: digital-card-service
NEW_BUILD_ARTIFACT: digital-card
SERVICE_LOCATION: digital-card-service
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
if: ${{ ( env.BUILD_ARTIFACT != 'false' ) }}
with:
name: ${{ env.BUILD_ARTIFACT }}
path: ../
- name: recreate zip
run: |
cd ../

echo "LS ./"
ls .
echo "unzip command"
unzip -uj "${{ env.BUILD_ARTIFACT }}.zip" "target/*" -d "${{ env.SERVICE_LOCATION }}/target/"

echo "find command"
cd ${{ env.SERVICE_LOCATION }}
find ../${{ env.SERVICE_LOCATION }} -path '*/target/*' -name '*.jar' -type f -executable -exec zip ${{ env.NEW_BUILD_ARTIFACT }}.zip {} +
- name: Upload the springboot jars
if: ${{ !contains(github.ref, 'master') || !contains(github.ref, 'main') }}
uses: actions/upload-artifact@v3
with:
name: ${{ env.NEW_BUILD_ARTIFACT }}
path: ${{ env.NEW_BUILD_ARTIFACT }}.zip

build-dockers:
needs: recreate-zips
strategy:
matrix:
include:
- SERVICE_LOCATION: '../digital-card-service'
SERVICE_NAME: 'digital-card-service'
BUILD_ARTIFACT: 'digital-card'
fail-fast: false
name: ${{ matrix.SERVICE_NAME }}
uses: mosip/kattu/.github/workflows/docker-build.yml@master-java21
with:
SERVICE_LOCATION: ${{ matrix.SERVICE_LOCATION }}
SERVICE_NAME: ${{ matrix.SERVICE_NAME }}
BUILD_ARTIFACT: ${{ matrix.BUILD_ARTIFACT }}
secrets:
DEV_NAMESPACE_DOCKER_HUB: ${{ secrets.DEV_NAMESPACE_DOCKER_HUB }}
ACTOR_DOCKER_HUB: ${{ secrets.ACTOR_DOCKER_HUB }}
RELEASE_DOCKER_HUB: ${{ secrets.RELEASE_DOCKER_HUB }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

sonar_analysis:
needs: build-maven-digitalcard
if: "${{ github.event_name != 'pull_request' }}"
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master-java21
with:
SERVICE_LOCATION: ./
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
ORG_KEY: ${{ secrets.ORG_KEY }}
OSSRH_USER: ${{ secrets.OSSRH_USER }}
OSSRH_SECRET: ${{ secrets.OSSRH_SECRET }}
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
Loading