Skip to content

BAH-4116 | Add. Bump appVersion 1.1.0 -> 1.2.0 (#10) #87

BAH-4116 | Add. Bump appVersion 1.1.0 -> 1.2.0 (#10)

BAH-4116 | Add. Bump appVersion 1.1.0 -> 1.2.0 (#10) #87

name: Build and Publish FHIR CDS Service
on:
push:
branches:
- main
tags:
- '[0-9]+.[0-9]+.[0-9]+'
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 env.ARTIFACT_VERSION
run: |
wget -q https://raw.githubusercontent.com/Bahmni/bahmni-infra-utils/main/setArtifactVersion.sh && chmod +x setArtifactVersion.sh
./setArtifactVersion.sh
rm setArtifactVersion.sh
- 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:${{ env.ARTIFACT_VERSION }},bahmni/cdss-reference:latest