name: Build/Push docker image
on:
  release:
    types: [published]
jobs:
  main:
    if: github.repository == 'oncokb/oncokb'
    name: Build and Push
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1

      - uses: actions/setup-java@v1
        with:
          java-version: '8.x'

      - name: Login to DockerHub
        uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKER_USERNAME }}
          password: ${{ secrets.DOCKER_PASSWORD }}

      - name: Build the docker image and push
        env:
          TAG_NAME: ${{ github.event.release.tag_name }}
        run: |
          mvn -ntp package -DskipTests -P public,production
          docker push oncokb/oncokb:${TAG_NAME}

Add action to build and push docker image
Add action to build and push docker image
