Skip to content

Update proxy_image_build_publish.yml #22

Update proxy_image_build_publish.yml

Update proxy_image_build_publish.yml #22

name: Build and Publish Proxy Image
on:
push:
branches:
- snomed-master
- BS-178
tags:
- '[0-9]+.[0-9]+.[0-9]+'
jobs:
docker-build-publish:
name: Docker Build & Publish
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- 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 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
no-cache: true
push: true
tags: bahmni/proxy:snomed-${{env.ARTIFACT_VERSION}},bahmni/proxy:snomed-latest