Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
d2585ca
updated to 1.1.5-SNAPSHOT (#53)
sowmya695 Feb 25, 2021
1fd0259
updated for rc1 release
ckm007 Apr 12, 2021
3cf0fcc
Merge pull request #56 from ckm007/1.1.5
ckm007 Apr 12, 2021
e18d9c8
updated for 1.1.5 release
ckm007 Apr 21, 2021
d097e33
Merge pull request #57 from ckm007/1.1.5
ckm007 Apr 21, 2021
d0939f4
updated the jaxb version to 2.3.1
ckm007 May 14, 2021
e52de85
updated for 1.1.5.2 release
ckm007 May 14, 2021
e55acac
Merge pull request #58 from ckm007/1.1.5.2
ckm007 May 14, 2021
c7b0be1
Merge pull request #75 from MonobikashDas/1.1.4.1
gsasikumar Sep 17, 2021
9dbdbf3
Merge pull request #76 from MonobikashDas/1.1.5.3
MonobikashDas Sep 17, 2021
7b58466
Create release_changes.yml
ckm007 May 10, 2022
7de9758
Updated Pom versions for release changes
ckm007 May 10, 2022
14be60f
Merge pull request #125 from mosip/release-branch
ckm007 May 10, 2022
7a07b2f
replaced gpg keys
Rakshitha650 May 11, 2022
831ea57
Merge pull request #126 from Rakshitha650/1.1.5.3
ckm007 May 11, 2022
3be6616
[ DSD-931 ] Added sonar_analysis job in push_trigger.yml
May 11, 2022
76fe8ed
Merge pull request #127 from syed-salman-technoforte/1.1.5.3
ckm007 May 11, 2022
0b3da0c
[ DSD-931 ] -Dgpg.skip for sonar_analysis job
May 11, 2022
3070f36
Merge pull request #128 from syed-salman-technoforte/1.1.5.3
ckm007 May 11, 2022
7e0b308
Update push_trigger.yml
May 11, 2022
b15a37f
Merge pull request #129 from mandeepdhiman123/patch-2
ckm007 May 11, 2022
8ab1013
MOSIP-23945 : resttemplate issue resolved and version modified to p1
vishwa-vyom Oct 9, 2022
84d04b8
Merge pull request #138 from vishwa-vyom/MOSIP-23945-1.1.5.3-p1
ckm007 Oct 9, 2022
109b3e4
MOSIP-23945 : Null condition check corrected
vishwa-vyom Oct 19, 2022
52c176d
Merge pull request #140 from vishwa-vyom/MOSIP-23945-1.1.5.3-p1
ckm007 Oct 19, 2022
d33f928
Updated Pom versions for release changes
ckm007 Oct 28, 2022
3676bfa
Merge pull request #141 from mosip/release-branch
ckm007 Oct 28, 2022
783b3be
MOSIP-26928 : Khazana version changed to latest
vishwa-vyom Apr 11, 2023
b84f56c
Merge pull request #148 from vishwa-vyom/MOSIP-26928
vishwa-vyom Apr 11, 2023
f24896a
MOSIP-26928 : Khazana changed to latest released rc version
vishwa-vyom Apr 17, 2023
5cb5d97
Merge pull request #149 from vishwa-vyom/MOSIP-26928-1
vishwa-vyom Apr 17, 2023
bd7037d
Updated Pom versions for release changes
vishwa-vyom Apr 17, 2023
0535f9b
Merge pull request #150 from mosip/release-branch
vishwa-vyom Apr 17, 2023
7d1ad85
Updated Pom versions for release changes
akilalakshmanan Jun 30, 2023
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
Binary file modified .github/keys/mosipgpgkey_pub.gpg
Binary file not shown.
Binary file modified .github/keys/mosipgpgkey_sec.gpg
Binary file not shown.
63 changes: 56 additions & 7 deletions .github/workflows/push_trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,65 @@ jobs:

- name: Publish the maven package
run: |
cd data-share && mvn deploy -DskipTests -DaltDeploymentRepository=ossrh::default::${{ secrets.RELEASE_URL }} -s $GITHUB_WORKSPACE/settings.xml -f pom.xml
cd data-share && mvn deploy -DaltDeploymentRepository=ossrh::default::${{ secrets.RELEASE_URL }} -s $GITHUB_WORKSPACE/settings.xml -f pom.xml
env:
GITHUB_TOKEN: ${{ secrets.RELEASE_TOKEN }}
GPG_TTY: $(tty)
- name: Analyze with SonarCloud
run: |
mvn -B verify sonar:sonar -Dsonar.projectKey=${{ secrets.PROJECT_KEY }} -Dsonar.organization=${{ secrets.ORG_KEY }} -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

sonar_analysis:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up JDK 11
uses: actions/setup-java@v1
with:
ref: ${{ github.ref }}
java-version: 11
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file

- name: Setup branch and GPG public key
run: |
# Strip git ref prefix from version
echo ${{ env.BRANCH_NAME }}
echo ${{ env.GPG_TTY }}
sudo apt-get --yes install gnupg2
gpg2 --import ./.github/keys/mosipgpgkey_pub.gpg
gpg2 --quiet --batch --passphrase=${{secrets.gpg_secret}} --allow-secret-key-import --import ./.github/keys/mosipgpgkey_sec.gpg

- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-${{ env.BRANCH_NAME }}

- name: Install xmllint
run: |
sudo apt-get update
sudo apt-get install libxml2-utils

- name: Setup the settings file for ossrh server
run: echo "<settings> <servers> <server> <id>ossrh</id> <username>${{secrets.RELEASE_USER}}</username> <password>${{secrets.RELEASE_TOKEN}}</password> </server> </servers> <profiles> <profile> <id>ossrh</id> <activation> <activeByDefault>true</activeByDefault> </activation> <properties> <gpg.executable>gpg2</gpg.executable> <gpg.passphrase>${{secrets.gpg_secret}}</gpg.passphrase> </properties> </profile> <profile> <id>allow-snapshots</id> <activation><activeByDefault>true</activeByDefault></activation> <repositories> <repository> <id>snapshots-repo</id> <url>https://oss.sonatype.org/content/repositories/snapshots</url> <releases><enabled>false</enabled></releases> <snapshots><enabled>true</enabled></snapshots> </repository> <repository> <id>releases-repo</id> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> <releases><enabled>true</enabled></releases> <snapshots><enabled>false</enabled></snapshots> </repository> </repositories> </profile> <profile> <id>sonar</id> <properties> <sonar.sources>.</sonar.sources> <sonar.host.url>https://sonarcloud.io</sonar.host.url> </properties> <activation> <activeByDefault>false</activeByDefault> </activation> </profile> </profiles> </settings>" > $GITHUB_WORKSPACE/settings.xml

- name: Build with Maven
run: |
mvn -B package -s $GITHUB_WORKSPACE/settings.xml --file pom.xml

- name: Analyze with SonarCloud
run: |
mvn -B -Dgpg.skip verify sonar:sonar -Dsonar.projectKey=mosip_${{ github.event.repository.name }} -Dsonar.organization=${{ secrets.ORG_KEY }} -Dsonar.host.url=https://sonarcloud.io -Dsonar.login=${{ secrets.SONAR_TOKEN }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
- uses: 8398a7/action-slack@v3
with:
status: ${{ job.status }}
fields: repo,message,commit,workflow,job # selectable (default: repo,message)
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_DEVOPS_WEBHOOK }} # required
if: failure() # Pick up events even if the job fails or is canceled.

docker-data-share-service:
needs: build

Expand Down
56 changes: 56 additions & 0 deletions .github/workflows/release_changes.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Release/pre-release Preparation.

on:
workflow_dispatch:
inputs:
message:
description: 'Triggered for release or pe-release'
required: false
default: 'Release Preparation'
releaseTags:
description: 'tag to update'
required: true
snapshotTags:
description: 'tag to be replaced'
required: true
base:
description: 'base branch for PR'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup branch and env
run: |
# Strip git ref prefix from version
echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV
echo "GPG_TTY=$(tty)" >> $GITHUB_ENV

- name: Mannualy changing the pom versions
run: find . -type f -name "*pom.xml" -print0 | xargs -0 sed -i "s/${{ github.event.inputs.snapshotTags }}/${{ github.event.inputs.releaseTags }}/g"

- name: Updating the Release URL in POM
run: |
cd .github/workflows
sed -i 's/OSSRH_SNAPSHOT_URL/RELEASE_URL/g' push_trigger.yml

- name: Updating libs-snapshot-local to libs-release local for artifactory URL's.
run: find . -type f -name "*Dockerfile" -print0 | xargs -0 sed -i "s/libs-snapshot-local/libs-release-local/g"

- name: removing -DskipTests
run: find . -type f -name "*push_trigger.yml" -print0 | xargs -0 sed -i "s/"-DskipTests"//g"

# - name: removing --Dgpg.skip
# run: find . -type f -name "*push_trigger.yml" -print0 | xargs -0 sed -i "s/"-Dgpg.skip"//g"

- name: Create Pull Request
uses: peter-evans/create-pull-request@v3
with:
commit-message: Updated Pom versions for release changes
title: Release changes
body: Automated PR for ${{ github.event.inputs.releaseTags }} release.
branch: release-branch
delete-branch: true
base: ${{ github.event.inputs.base }}
token: ${{ secrets.ACTION_PAT }}
8 changes: 4 additions & 4 deletions data-share/data-share-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
<parent>
<groupId>io.mosip.datashare</groupId>
<artifactId>data-share</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>1.1.5.3-P2</version>
</parent>

<artifactId>data-share-service</artifactId>
<version>1.2.0-SNAPSHOT</version>
<version>1.1.5.3-P2</version>
<name>data-share-service</name>

<properties>
Expand Down Expand Up @@ -95,7 +95,7 @@
<version>${kernel.logger.logback.version}</version>
</dependency>
<dependency>
<groupId>io.mosip.commons.</groupId>
<groupId>io.mosip.commons</groupId>
<artifactId>khazana</artifactId>
<version>${kernel.object.store.version}</version>
</dependency>
Expand Down Expand Up @@ -124,7 +124,7 @@
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
<version>2.3.0</version>
<version>2.3.1</version>
</dependency>

<dependency>
Expand Down
Loading