Skip to content

Commit

Permalink
Merge pull request #12 from Prafulrakhade/develop
Browse files Browse the repository at this point in the history
MOSIP-34814 added push-trigger for develop branch
  • Loading branch information
ckm007 authored Aug 9, 2024
2 parents f231a2a + f93a24f commit 8c472c6
Show file tree
Hide file tree
Showing 4 changed files with 111 additions and 26 deletions.
Binary file added .github/keys/mosipgpgkey_pub.gpg
Binary file not shown.
Binary file added .github/keys/mosipgpgkey_sec.gpg
Binary file not shown.
65 changes: 65 additions & 0 deletions .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
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'
- 'MOSIP*'
- 'develop*'
- 'master'
- '1.*'

jobs:
build-maven-nfiq:
uses: mosip/kattu/.github/workflows/maven-build.yml@master-java21
with:
SERVICE_LOCATION: ./nfiq1.0
BUILD_ARTIFACT: nfiq
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-nfiq
uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master-java21
with:
SERVICE_LOCATION: ./nfiq1.0
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 }}

sonar_analysis:
needs: build-maven-nfiq
if: "${{ github.event_name != 'pull_request' }}"
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master-java21
with:
SERVICE_LOCATION: ./nfiq1.0
PROJECT_KEY: 'mosip_nfiq'
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 }}
72 changes: 46 additions & 26 deletions nfiq1.0/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,33 @@
<groupId>io.mosip</groupId>
<artifactId>nfiq1.0</artifactId>
<version>0.0.1-SNAPSHOT</version>
<name>kernel-bio-converter</name>
<name>nfiq1.0</name>
<description>NFIQ</description>
<url>https://https://github.com/mosip/nfiq</url>

<licenses>
<license>
<name>MPL 2.0</name>
<url>https://www.mozilla.org/en-US/MPL/2.0/</url>
</license>
</licenses>

<scm>
<connection>scm:git:git://github.com/mosip/nfiq.git</connection>
<developerConnection>scm:git:ssh://github.com:mosip/nfiq.git</developerConnection>
<url>https://github.com/mosip/nfiq</url>
<tag>HEAD</tag>
</scm>

<developers>
<developer>
<name>Mosip</name>
<email>[email protected]</email>
<organization>io.mosip</organization>
<organizationUrl>https://github.com/mosip/nfiq</organizationUrl>
</developer>
</developers>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>21</java.version>
Expand All @@ -25,7 +48,6 @@
<maven.deploy.plugin.version>3.1.1</maven.deploy.plugin.version>
<maven.source.plugin.version>3.3.1</maven.source.plugin.version>
<maven.javadoc.plugin.version>3.2.0</maven.javadoc.plugin.version>
<maven.gpg.plugin.version>3.2.3</maven.gpg.plugin.version>
<maven.jar.plugin.version>3.0.2</maven.jar.plugin.version>
<maven.war.plugin.version>3.1.0</maven.war.plugin.version>
<maven.surefire.plugin.version>2.22.0</maven.surefire.plugin.version>
Expand Down Expand Up @@ -124,6 +146,28 @@
</compilerArgs>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>1.5</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
</configuration>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
Expand Down Expand Up @@ -281,28 +325,4 @@
</build>
</profile>
</profiles>

<licenses>
<license>
<name>MPL 2.0</name>
<url>https://www.mozilla.org/en-US/MPL/2.0/</url>
</license>
</licenses>

<scm>
<connection>scm:git:git://github.com/mosip/nfiq.git</connection>
<developerConnection>scm:git:ssh://github.com:mosip/nfiq.git</developerConnection>
<url>https://github.com/mosip/converters</url>
<tag>HEAD</tag>
</scm>

<developers>
<developer>
<name>Mosip</name>
<email>[email protected]</email>
<organization>io.mosip</organization>
<organizationUrl>https://github.com/mosip/nfiq</organizationUrl>
</developer>
</developers>

</project>

0 comments on commit 8c472c6

Please sign in to comment.