forked from IHTSDO/snomed-fhir-cds-service
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.18 KB
/
build_publish_cdss.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
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