forked from IHTSDO/snomed-fhir-cds-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
53846d1
commit 500571f
Showing
2 changed files
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
- Bug-bash-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 | ||
|
||
- 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |