Skip to content

GITBOOK-48: change request with no subject merged in GitBook #199

GITBOOK-48: change request with no subject merged in GitBook

GITBOOK-48: change request with no subject merged in GitBook #199

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