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 17bc77c
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 4 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
2 changes: 1 addition & 1 deletion admin/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
</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>
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

0 comments on commit 17bc77c

Please sign in to comment.