Skip to content

Commit

Permalink
[MOSIP-29162] Updated workflows as per reusable workflow format
Browse files Browse the repository at this point in the history
[MOSIP-25631]
Sonar fixes

Signed-off-by: syed salman <[email protected]>
  • Loading branch information
syedsalman3753 committed Oct 27, 2023
1 parent bc606ba commit 063b979
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/push-trigger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,22 @@ on:
release:
types: [published]
pull_request:
types: [opened]
types: [opened, reopened, synchronize]
workflow_dispatch:
inputs:
message:
description: 'Message for manually triggering'
required: false
default: 'Triggered for Updates'
type: string
push:
branches:
- MOSIP*
- 1.*
- '!release-branch'
- develop
- release-*
- master
- '*'
- 1.*
- MOSIP*

jobs:
build-admin-ui:
Expand Down Expand Up @@ -91,7 +98,7 @@ jobs:
ACTOR_DOCKER_HUB: ${{ secrets.ACTOR_DOCKER_HUB }}
RELEASE_DOCKER_HUB: ${{ secrets.RELEASE_DOCKER_HUB }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
publish_to_nexus:
publish-to-nexus-admintest:
if: "${{ !contains(github.ref, 'master') && github.event_name != 'pull_request' }}"
needs: build-maven-admintest
uses: mosip/kattu/.github/workflows/maven-publish-to-nexus.yml@master
Expand All @@ -104,12 +111,14 @@ jobs:
OSSRH_TOKEN: ${{ secrets.OSSRH_TOKEN }}
GPG_SECRET: ${{ secrets.GPG_SECRET }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
sonar_analysis:
sonar-analysis-admintest:
needs: build-maven-admintest
if: "${{ github.event_name != 'pull_request' }}"
uses: mosip/kattu/.github/workflows/maven-sonar-analysis.yml@master
with:
SERVICE_LOCATION: admintest
SONAR_URL: 'https://sonarcloud.io'
PROJECT_KEY: 'mosip_admintest'
secrets:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
ORG_KEY: ${{ secrets.ORG_KEY }}
Expand Down

0 comments on commit 063b979

Please sign in to comment.