Skip to content

Commit

Permalink
Siva Reddy | BS-42 | deployment to SNOMED Environment (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
sivareddyp committed Jul 13, 2023
1 parent 0aa4001 commit 55547da
Show file tree
Hide file tree
Showing 8 changed files with 31 additions and 11 deletions.
22 changes: 21 additions & 1 deletion .github/workflows/build_publish.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Build and Publish package
on:
push:
branches: [ master ]
branches: [ snomed-master ]
workflow_dispatch:

jobs:
Expand Down Expand Up @@ -37,3 +37,23 @@ jobs:
NEXUS_USERNAME: ${{ secrets.NEXUS_USERNAME }}
NEXUS_PASSWORD: ${{ secrets.NEXUS_PASSWORD }}

trigger:
name: Trigger Deployment Workflow in Distro Bahmni
needs:
- build-publish-package
runs-on: ubuntu-latest
env:
ORG_NAME: Bahmni
REPOSITORY_NAME: openmrs-distro-bahmni
ENVIRONMENT: dev
steps:
- name: Create workflow_dispatch
run: |
trigger_result=$(curl -s -o trigger_response.txt -w "%{http_code}" -X POST -H "Accept: application/vnd.github.v3+json" -H 'authorization: Bearer ${{ secrets.BAHMNI_PAT }}' https://api.github.com/repos/${ORG_NAME}/${REPOSITORY_NAME}/actions/workflows/build_publish_openmrs.yml/dispatches -d '{"ref":"snomed-master","inputs":{}')
if [ $trigger_result == 204 ];then
echo "Trigger to $ORG_NAME/$REPOSITORY_NAME Success"
else
echo "Trigger to $ORG_NAME/$REPOSITORY_NAME Failed"
cat trigger_response.txt
exit 1
fi
4 changes: 2 additions & 2 deletions admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@
</dependency>
<dependency>
<groupId>org.bahmni.module</groupId>
<artifactId>bahmnicore-api</artifactId>
<artifactId>bahmnicore-ts-api</artifactId>
<version>${project.parent.version}</version>
<type>jar</type>
</dependency>
<dependency>
<groupId>org.bahmni.module</groupId>
<artifactId>bahmnicore-api</artifactId>
<artifactId>bahmnicore-ts-api</artifactId>
<version>${project.parent.version}</version>
<type>test-jar</type>
<scope>test</scope>
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.2.0-SNAPSHOT</version>
</parent>
<artifactId>bahmnicore-api</artifactId>
<artifactId>bahmnicore-ts-api</artifactId>
<packaging>jar</packaging>
<name>Bahmni EMR Core API</name>

Expand Down
6 changes: 3 additions & 3 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.2.0-SNAPSHOT</version>
</parent>
<artifactId>bahmnicore-omod</artifactId>
<artifactId>bahmnicore-ts-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-ts-api</artifactId>
<version>${project.parent.version}</version>
<exclusions>
<exclusion>
Expand Down Expand Up @@ -99,7 +99,7 @@
</dependency>
<dependency>
<groupId>org.bahmni.module</groupId>
<artifactId>bahmnicore-api</artifactId>
<artifactId>bahmnicore-ts-api</artifactId>
<version>${project.parent.version}</version>
<type>test-jar</type>
<scope>test</scope>
Expand Down
2 changes: 1 addition & 1 deletion bahmnicore-ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
</dependency>
<dependency>
<groupId>org.bahmni.module</groupId>
<artifactId>bahmnicore-api</artifactId>
<artifactId>bahmnicore-ts-api</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion openmrs-elis-atomfeed-client-omod/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@
</dependency>
<dependency>
<groupId>org.bahmni.module</groupId>
<artifactId>bahmnicore-api</artifactId>
<artifactId>bahmnicore-ts-api</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
<exclusions>
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@
</dependency>
<dependency>
<groupId>org.bahmni.module</groupId>
<artifactId>bahmnicore-omod</artifactId>
<artifactId>bahmnicore-ts-omod</artifactId>
<version>${project.version}</version>
</dependency>
<dependency>
Expand Down
2 changes: 1 addition & 1 deletion vagrant-deploy/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
</dependency>
<dependency>
<groupId>org.bahmni.module</groupId>
<artifactId>bahmnicore-omod</artifactId>
<artifactId>bahmnicore-ts-omod</artifactId>
</dependency>
<dependency>
<groupId>org.bahmni.module</groupId>
Expand Down

0 comments on commit 55547da

Please sign in to comment.