Deepthi M/Pooja | Added functionality to show active patients with pe… #23
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
name: Build and Publish | |
on: | |
push: | |
branches: | |
- main | |
- 'release-*' | |
tags: | |
- '[0-9]+.[0-9]+.[0-9]+' | |
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: Setup Node.js 16.x | |
uses: actions/setup-node@v1 | |
with: | |
node-version: "16.x" | |
- run: yarn install | |
- run: yarn build:appshell | |
- run: yarn lint | |
- run: yarn typescript | |
- run: yarn test | |
- run: yarn build:dist | |
- run: cp -R omrs-apps/* dist/ | |
- 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_USERNAME }} | |
password: ${{ secrets.DOCKER_PASSWORD }} | |
- name: Docker - Build and push | |
uses: docker/build-push-action@v3 | |
with: | |
context: . | |
platforms: linux/amd64,linux/arm64 | |
file: package/docker/Dockerfile | |
push: true | |
tags: bahmnihwc/bahmni-lab:${{env.ARTIFACT_VERSION}},bahmnihwc/bahmni-lab:latest |