Skip to content

Commit

Permalink
deploy commit
Browse files Browse the repository at this point in the history
  • Loading branch information
manimaarans committed Nov 15, 2023
1 parent 7b9f28b commit 5248793
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 0 deletions.
46 changes: 46 additions & 0 deletions .github/workflows/build_publish_cdss.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Build and Publish FHIR CDS Service
on:
push:
branches:
- main
- BS-290-deploy
paths-ignore:
- "**.md"
workflow_dispatch:

jobs:
build-publish-docker:
name: Build & Publish Docker Image
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
distribution: corretto
java-version: 17

- name: Build with Maven
run: mvn clean -U package -DskipTests

- name: Set up QEMU
uses: docker/setup-qemu-action@v2

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2

- name: Login to DockerHub
uses: docker/login-action@v2
with:
username: ${{ secrets.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_TOKEN }}
- name: Docker Build and push
uses: docker/build-push-action@v3
with:
context: .
platforms: linux/amd64,linux/arm64
file: package/docker/cdss/Dockerfile
push: true
tags: bahmni/cdss-reference:snomed-${{ github.run_number }},bahmni/cdss-reference:latest
10 changes: 10 additions & 0 deletions package/docker/cdss/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM eclipse-temurin:17.0.6_10-jre

ARG JAR_FILE=target/*.jar
COPY ${JAR_FILE} snomed-fhir-cds-service.jar
COPY CDS_Medication-Condition_Cards.xlsx CDS_Medication-Condition_Cards.xlsx
COPY CDS_Medication-Medication_Cards.tsv CDS_Medication-Medication_Cards.tsv
COPY Snomed_Substance_DDDs.tsv Snomed_Substance_DDDs.tsv
COPY ATC_Route_Of_Administration_Snomed_DoseForm_Map.tsv ATC_Route_Of_Administration_Snomed_DoseForm_Map.tsv

ENTRYPOINT exec java $JAVA_OPTS -jar /snomed-fhir-cds-service.jar

0 comments on commit 5248793

Please sign in to comment.