<commit_before># Thid workflow will build and push the import pipeline container.
# the plan later will be to include unit tests as well


name: Building Pipeline Containers

on:
 push:
  branches:
   'dev'
jobs:
  create-docker-image:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: docker login
        env:
          DOCKER_USER: ${{ secrets.DOCKER_USER }}
          DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
        run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD

      - name: docker build
        run: docker build -f Dockerfile -t rnacentral/rnacentral-import-pipeline .

      - name: docker push
        run: docker push rnacentral/rnacentral-import-pipeline<commit_msg>Add slack notification to github workflow<commit_after># Thid workflow will build and push the import pipeline container.
# the plan later will be to include unit tests as well


name: Building Pipeline Containers

on:
 push:
  branches:
   'dev'
jobs:

  starting-notification:
   runs-on: ubuntu-latest
   steps:
     - uses: actions/checkout@v2

     - name: Intital notification
       uses: rtCamp/action-slack-notify@v2
       env:
         SLACK_MESSAGE: 'Creating new pipeline image in docker hub'
         SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
         MSG_MINIMAL: true

  create-docker-image:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: docker login
        env:
          DOCKER_USER: ${{ secrets.DOCKER_USER }}
          DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
        run: docker login -u $DOCKER_USER -p $DOCKER_PASSWORD

      - name: docker build
        run: docker build -f Dockerfile -t rnacentral/rnacentral-import-pipeline .

      - name: docker push
        run: docker push rnacentral/rnacentral-import-pipeline

  finished-notification:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2

      - name: Finished notification
        uses: rtCamp/action-slack-notify@v2
        env:
          SLACK_MESSAGE: 'New pipeline image pushed to docker hub'
          SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
          MSG_MINIMAL: true
{'fraction_non_alphanumeric': 0.08314087759815242, 'fraction_numerical': 0.002771362586605081, 'mean_word_length': 2.5392156862745097, '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': '2944278', 'n_tokens_mistral': 715, 'n_tokens_neox': 665, 'n_words': 190}