Skip to content

Merge pull request #251 from jembi/make-fhir-version-configurable #186

Merge pull request #251 from jembi/make-fhir-version-configurable

Merge pull request #251 from jembi/make-fhir-version-configurable #186

name: Build and Push platform image
on:
push:
tags:
- "*.*.*"
branches:
- main
jobs:
build-and-push:
runs-on: ubuntu-20.04
steps:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
- name: Login to DockerHub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Build and push tag
if: ${{ github.ref_name != 'main' }}
uses: docker/build-push-action@v2
with:
push: true
tags: jembi/platform:${{ github.ref_name }}
- name: Build and push latest
if: ${{ github.ref_name == 'main' }}
uses: docker/build-push-action@v2
with:
push: true
tags: jembi/platform:latest