Skip to content

Merge pull request #252 from jembi/fix-mongo-replication #188

Merge pull request #252 from jembi/fix-mongo-replication

Merge pull request #252 from jembi/fix-mongo-replication #188

Workflow file for this run

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