forked from BahmniIndiaDistro/bahmni-india-package
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (36 loc) · 1.16 KB
/
build_publish_proxy.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
name: Build and Publish Proxy Image
on:
push:
branches:
- main
paths:
- "bahmni-proxy/**"
- ".github/workflows/build_publish_proxy.yml"
workflow_dispatch:
jobs:
docker-build-publish:
name: Docker Build & Publish proxy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setting Artifact version
run: |
APP_VERSION=$(cat bahmni-proxy/.appversion)
echo "ARTIFACT_VERSION=$(echo $APP_VERSION-${{github.run_number}})" >> $GITHUB_ENV
- 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: bahmni-proxy/package/docker/Dockerfile
push: true
tags: bahmnihwc/proxy:${{env.ARTIFACT_VERSION}},bahmnihwc/proxy:latest