Skip to content

Commit

Permalink
add. Workflow and pom changes for omod
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjun-Go committed Jul 10, 2023
1 parent 4a5585e commit 12adb60
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/build_publish.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
name: Build and Publish package
on:
push:
branches: [ master ]
branches: [ Bahmni-IPD-master ]
workflow_dispatch:

jobs:
Trivy:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Trivy Scan
run: |
wget -q https://raw.githubusercontent.com/Bahmni/bahmni-infra-utils/main/trivy_scan.sh && chmod +x trivy_scan.sh
./trivy_scan.sh
rm trivy_scan.sh
build-publish-package:
name: Build and Publish package
runs-on: macos-11
needs: Trivy
steps:
- uses: actions/checkout@v2
- name: Set up JDK 1.8
Expand Down Expand Up @@ -36,4 +47,3 @@ jobs:
env:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

2 changes: 1 addition & 1 deletion .github/workflows/validate_pr.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Validate PR
on:
pull_request:
branches: [ master ]
branches: [ Bahmni-IPD-master ]

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion bahmnicore-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<artifactId>bahmni</artifactId>
<version>1.1.0</version>
</parent>
<artifactId>bahmnicore-api</artifactId>
<artifactId>bahmnicore-ipd-api</artifactId>
<packaging>jar</packaging>
<name>Bahmni EMR Core API</name>

Expand Down
4 changes: 2 additions & 2 deletions bahmnicore-omod/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<artifactId>bahmni</artifactId>
<version>1.1.0</version>
</parent>
<artifactId>bahmnicore-omod</artifactId>
<artifactId>bahmnicore-ipd-omod</artifactId>
<packaging>jar</packaging>
<name>Bahmni EMR Core OMOD</name>

Expand Down Expand Up @@ -61,7 +61,7 @@
</dependency>
<dependency>
<groupId>org.bahmni.module</groupId>
<artifactId>bahmnicore-api</artifactId>
<artifactId>bahmnicore-ipd-api</artifactId>
<version>${project.parent.version}</version>
<exclusions>
<exclusion>
Expand Down

0 comments on commit 12adb60

Please sign in to comment.