<commit_before>name: Publish docker image

on:
  push:
    branches: [ master ]

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up JDK 1.8
        uses: actions/setup-java@v1
        with:
          java-version: 1.8
          java-package: jdk+fx
      - uses: azure/docker-login@v1
        with:
          username: karasiq
          password: ${{ secrets.DOCKER_PASSWORD }}
      - name: Publish docker image
        run: |
          export JAVA_OPTS="-Xmx4G -Denable-tika=1 -Denable-javacv=1"
          sbt consoleApp/docker:publish<commit_msg>Publish docker only on release tag<commit_after>name: Publish docker image

on:
  push:
    tags:
      - v[0-9].[0-9]+.[0-9]+

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - name: Set up JDK 1.8
        uses: actions/setup-java@v1
        with:
          java-version: 1.8
          java-package: jdk+fx
      - uses: azure/docker-login@v1
        with:
          username: karasiq
          password: ${{ secrets.DOCKER_PASSWORD }}
      - name: Publish docker image
        run: |
          export JAVA_OPTS="-Xmx4G -Denable-tika=1 -Denable-javacv=1"
          sbt consoleApp/docker:publish
{'fraction_non_alphanumeric': 0.11066559743384122, 'fraction_numerical': 0.020850040096230954, 'mean_word_length': 1.8689655172413793, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7373597', 'n_tokens_mistral': 450, 'n_tokens_neox': 430, 'n_words': 94}