Skip to content

[Rahul] | BAH-4097 | Add. Bump Version 1.0.1-SNAPSHOT -> 1.1 (#6) #79

[Rahul] | BAH-4097 | Add. Bump Version 1.0.1-SNAPSHOT -> 1.1 (#6)

[Rahul] | BAH-4097 | Add. Bump Version 1.0.1-SNAPSHOT -> 1.1 (#6) #79

name: Build and Publish FHIR CDS Service
on:
push:
branches:
- main
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