-
Notifications
You must be signed in to change notification settings - Fork 100
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 #1094 from praful-technoforte/develop
[MOSIP-38703],[MOSIP-38704] & [MOSIP-38707] updated push-trigger.yml …
- Loading branch information
Showing
4 changed files
with
248 additions
and
18 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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Manual Docker Build for without -SNAPSHOT | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
message: | ||
description: 'Message for manually triggering' | ||
required: false | ||
default: 'Triggered for Updates' | ||
type: string | ||
|
||
jobs: | ||
|
||
build_maven_esignet_with_plugins: | ||
uses: mosip/kattu/.github/workflows/maven-build.yml@master | ||
with: | ||
SERVICE_LOCATION: ./esignet-with-plugins | ||
BUILD_ARTIFACT: esignet-with-plugins | ||
MAVEN_NON_EXEC_ARTIFACTS: "esignet-mock-plugin.jar,mosip-identity-plugin.jar,sunbird-rc-plugin.jar" | ||
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 }} | ||
|
||
build_dockers_with_esignet_plugins: | ||
needs: build_maven_esignet_with_plugins | ||
if: ${{ github.event_name == 'workflow_dispatch' }} # Runs only when triggered manually | ||
strategy: | ||
matrix: | ||
include: | ||
- SERVICE_LOCATION: 'esignet-with-plugins' | ||
SERVICE_NAME: 'esignet-with-plugins' | ||
BUILD_ARTIFACT: 'esignet-with-plugins' | ||
fail-fast: false | ||
name: ${{ matrix.SERVICE_NAME }} | ||
uses: mosip/kattu/.github/workflows/docker-build.yml@master | ||
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 }} |
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 |
---|---|---|
@@ -1,4 +1,13 @@ | ||
FROM mosipdev/esignet | ||
|
||
ARG SOURCE | ||
ARG COMMIT_HASH | ||
ARG COMMIT_ID | ||
ARG BUILD_TIME | ||
LABEL source=${SOURCE} | ||
LABEL commit_hash=${COMMIT_HASH} | ||
LABEL commit_id=${COMMIT_ID} | ||
LABEL build_time=${BUILD_TIME} | ||
|
||
# copy all files under target/ to the plugins folder | ||
COPY ./target/*.jar ${plugins_path_env} |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
- License, v. 2.0. If a copy of the MPL was not distributed with this | ||
- file, You can obtain one at https://mozilla.org/MPL/2.0/. --> | ||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> | ||
<modelVersion>4.0.0</modelVersion> | ||
<parent> | ||
<groupId>io.mosip.esignet</groupId> | ||
|
@@ -15,7 +15,9 @@ | |
<version>1.5.1-SNAPSHOT</version> | ||
<name>esignet-with-plugins</name> | ||
<packaging>pom</packaging> | ||
|
||
<description> Project of MOSIP e-Signet with Plugins</description> | ||
<url>https://github.com/mosip/esignet</url> | ||
|
||
<properties> | ||
<java.version>11</java.version> | ||
<esignet-plugins.location>target</esignet-plugins.location> | ||
|
@@ -26,7 +28,40 @@ | |
<sunbird-rc-plugin.version>1.3.1-SNAPSHOT</sunbird-rc-plugin.version> | ||
<sunbird-rc-plugin.fileName>sunbird-rc-plugin.jar</sunbird-rc-plugin.fileName> | ||
</properties> | ||
|
||
|
||
<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/esignet.git</connection> | ||
<developerConnection>scm:git:ssh://github.com:mosip/esignet.git</developerConnection> | ||
<url>https://github.com/mosip/esignet</url> | ||
<tag>HEAD</tag> | ||
</scm> | ||
|
||
<developers> | ||
<developer> | ||
<name>Mosip</name> | ||
<email>[email protected]</email> | ||
<organization>io.mosip</organization> | ||
<organizationUrl>https://github.com/mosip/esignet</organizationUrl> | ||
</developer> | ||
</developers> | ||
|
||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>ossrh</id> | ||
<url>https://oss.sonatype.org/content/repositories/snapshots</url> | ||
</snapshotRepository> | ||
<repository> | ||
<id>ossrh</id> | ||
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
</repository> | ||
</distributionManagement> | ||
|
||
<build> | ||
<plugins> | ||
|
@@ -75,7 +110,54 @@ | |
<overWriteIfNewer>true</overWriteIfNewer> | ||
</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>pl.project13.maven</groupId> | ||
<artifactId>git-commit-id-plugin</artifactId> | ||
<version>3.0.1</version> | ||
<executions> | ||
<execution> | ||
<id>get-the-git-infos</id> | ||
<goals> | ||
<goal>revision</goal> | ||
</goals> | ||
<phase>validate</phase> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<generateGitPropertiesFile>true</generateGitPropertiesFile> | ||
<generateGitPropertiesFilename>${project.build.outputDirectory}/git.properties</generateGitPropertiesFilename> | ||
<includeOnlyProperties> | ||
<includeOnlyProperty>^git.build.(time|version)$</includeOnlyProperty> | ||
<includeOnlyProperty>^git.commit.id.(abbrev|full)$</includeOnlyProperty> | ||
</includeOnlyProperties> | ||
<commitIdGenerationMode>full</commitIdGenerationMode> | ||
<dotGitDirectory>${project.basedir}/.git</dotGitDirectory> | ||
<format>json</format> | ||
</configuration> | ||
</plugin> | ||
|
||
</plugins> | ||
</build> | ||
|
||
</project> |