[MOSIP-31942] #102
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
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' | ||
- release* | ||
- master | ||
- 1.* | ||
- develop | ||
- MOSIP* | ||
jobs: | ||
build-biometrics-util: | ||
uses: mosip/kattu/.github/workflows/maven-build.yml@master | ||
with: | ||
SERVICE_LOCATION: 'biometrics-util' | ||
BUILD_ARTIFACT: 'biometrics-util' | ||
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' && github.event_name != 'release' && github.event_name != 'prerelease' && github.event_name != 'publish' }}" | ||
needs: build-biometrics-util | ||
uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master | ||
with: | ||
SERVICE_LOCATION: 'biometrics-util' | ||
secrets: | ||
OSSRH_URL: ${{ secrets.RELEASE_URL }} | ||
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 }} | ||
sonar-analysis-biometrics-util: | ||
if: "${{ github.event_name != 'pull_request' }}" | ||
needs: build-biometrics-util | ||
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master | ||
with: | ||
SERVICE_LOCATION: 'biometrics-util' | ||
PROJECT_KEY: 'mosip_biometrics-util' | ||
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 }} | ||
build-kernel-biometrics-api: | ||
uses: mosip/kattu/.github/workflows/maven-build.yml@master | ||
with: | ||
SERVICE_LOCATION: 'kernel-biometrics-api' | ||
BUILD_ARTIFACT: 'kernel-biometrics-api' | ||
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-kernel-biometrics-api: | ||
if: "${{ !contains(github.ref, 'master') && github.event_name != 'pull_request' && github.event_name != 'release' && github.event_name != 'prerelease' && github.event_name != 'publish' }}" | ||
needs: build-kernel-biometrics-api | ||
uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master | ||
with: | ||
SERVICE_LOCATION: 'kernel-biometrics-api' | ||
secrets: | ||
OSSRH_URL: ${{ secrets.OSSRH_SNAPSHOT_URL } | ||
Check failure on line 86 in .github/workflows/push-trigger.yml GitHub Actions / Maven Package upon a pushInvalid workflow file
|
||
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 }} | ||
sonar-analysis-kernel-biometrics-api: | ||
if: "${{ github.event_name != 'pull_request' }}" | ||
needs: build-kernel-biometrics-api | ||
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master | ||
with: | ||
SERVICE_LOCATION: 'kernel-biometrics-api' | ||
PROJECT_KEY: 'mosip_kernel-biometrics-api' | ||
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 }} | ||
build-kernel-biosdk-provider: | ||
uses: mosip/kattu/.github/workflows/maven-build.yml@master | ||
with: | ||
SERVICE_LOCATION: 'kernel-biosdk-provider' | ||
BUILD_ARTIFACT: 'kernel-biosdk-provider' | ||
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-kernel-biosdk-provider: | ||
if: "${{ !contains(github.ref, 'master') && github.event_name != 'pull_request' && github.event_name != 'release' && github.event_name != 'prerelease' && github.event_name != 'publish' }}" | ||
needs: build-kernel-biosdk-provider | ||
uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master | ||
with: | ||
SERVICE_LOCATION: 'kernel-biosdk-provider' | ||
secrets: | ||
OSSRH_URL: ${{ secrets.RELEASE_URL }} | ||
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 }} | ||
sonar-analysis-kernel-biosdk-provider: | ||
if: "${{ github.event_name != 'pull_request' }}" | ||
needs: build-kernel-biosdk-provider | ||
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master | ||
with: | ||
SERVICE_LOCATION: 'kernel-biosdk-provider' | ||
PROJECT_KEY: 'mosip_kernel-biosdk-provider' | ||
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 }} | ||
build-kernel-cbeffutil-api: | ||
uses: mosip/kattu/.github/workflows/maven-build.yml@master | ||
with: | ||
SERVICE_LOCATION: 'kernel-cbeffutil-api' | ||
BUILD_ARTIFACT: 'kernel-cbeffutil-api' | ||
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-kernel-cbeffutil-api: | ||
if: "${{ !contains(github.ref, 'master') && github.event_name != 'pull_request' && github.event_name != 'release' && github.event_name != 'prerelease' && github.event_name != 'publish' }}" | ||
needs: build-kernel-cbeffutil-api | ||
uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master | ||
with: | ||
SERVICE_LOCATION: 'kernel-cbeffutil-api' | ||
secrets: | ||
OSSRH_URL: ${{ secrets.RELEASE_URL }} | ||
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 }} | ||
sonar-analysis-kernel-cbeffutil-api: | ||
if: "${{ github.event_name != 'pull_request' }}" | ||
needs: build-kernel-cbeffutil-api | ||
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master | ||
with: | ||
SERVICE_LOCATION: 'kernel-cbeffutil-api' | ||
PROJECT_KEY: 'mosip_kernel-cbeffutil-api' | ||
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 }} |