<commit_before>name: package

on: [push]

jobs:
  ui:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Build development image
      run: |
        docker build -t alephdata/aleph-ui:${GITHUB_SHA} .
        docker tag alephdata/aleph-ui:${GITHUB_SHA} alephdata/aleph-ui:latest
    - name: Build production image
      run: |
        docker build -t alephdata/aleph-ui-production:${GITHUB_SHA} -f ui/Dockerfile.production ui
    # - name: Push docker image (master)
    #   run: |
    #     docker login -u ${{ secrets.docker_user }} -p ${{ secrets.docker_password }}
    #     docker push alephdata/convert-document:${GITHUB_SHA}
  elasticsearch:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Build docker image
      run: |
        docker build -t alephdata/aleph-elasticsearch:${GITHUB_SHA} .
        docker tag alephdata/aleph-elasticsearch:${GITHUB_SHA} alephdata/aleph-elasticsearch:latest
    # - name: Push docker image (master)
    #   run: |
    #     docker login -u ${{ secrets.docker_user }} -p ${{ secrets.docker_password }}
    #     docker push alephdata/convert-document:${GITHUB_SHA}

<commit_msg>Rename and push to docker hub<commit_after>name: package

on: [push]

jobs:
  docker-ui:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Build development image
      run: |
        docker build -t alephdata/aleph-ui:${GITHUB_SHA} ui
        docker tag alephdata/aleph-ui:${GITHUB_SHA} alephdata/aleph-ui:latest
    - name: Build production image
      run: |
        docker build -t alephdata/aleph-ui-production:${GITHUB_SHA} -f ui/Dockerfile.production ui
    - name: Push docker image (master)
      run: |
        docker login -u ${{ secrets.docker_user }} -p ${{ secrets.docker_password }}
        docker push alephdata/aleph-ui-production:${GITHUB_SHA}
  docker-elasticsearch:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
    - name: Build docker image
      run: |
        docker build -t alephdata/aleph-elasticsearch:${GITHUB_SHA} services/elasticsearch
        docker tag alephdata/aleph-elasticsearch:${GITHUB_SHA} alephdata/aleph-elasticsearch:latest
    - name: Push docker image (master)
      run: |
        docker login -u ${{ secrets.docker_user }} -p ${{ secrets.docker_password }}
        docker push alephdata/aleph-elasticsearch:${GITHUB_SHA}

{'fraction_non_alphanumeric': 0.11632737847943499, 'fraction_numerical': 0.0016618196925633569, 'mean_word_length': 2.8161648177496037, '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': '3799128', 'n_tokens_mistral': 838, 'n_tokens_neox': 793, 'n_words': 177}