<commit_before>name: Build and Publish Docker Image

on:
  release:
    types: [prereleased, released]

jobs:
  docker:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Set env
      run: echo ::set-env name=VERSION::node -p "require('./package.json').version"
    - name: Docker Login
      run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
    - name: Build Docker Image
      run: docker build . -t openolitor/openolitor-client-kundenportal:${VERSION}
    - name: Publish Docker Image
      run: docker push openolitor/openolitor-client-kundenportal:${VERSION}
      env:
        VERSION<commit_msg>corrected package name<commit_after>name: Build and Publish Docker Image

on:
  release:
    types: [prereleased, released]

jobs:
  docker:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Set env
      run: echo ::set-env name=VERSION::node -p "require('./package.json').version"
    - name: Docker Login
      run: echo ${{ secrets.DOCKERHUB_PASSWORD }} | docker login -u ${{ secrets.DOCKERHUB_USERNAME }} --password-stdin
    - name: Build Docker Image
      run: docker build . -t openolitor/openolitor-client-admin:${VERSION}
    - name: Publish Docker Image
      run: docker push openolitor/openolitor-client-admin:${VERSION}
      env:
        VERSION
{'fraction_non_alphanumeric': 0.11899641577060932, 'fraction_numerical': 0.0014336917562724014, 'mean_word_length': 3.0, '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': '803613', 'n_tokens_mistral': 467, 'n_tokens_neox': 438, 'n_words': 115}