<commit_before>name: lint/build (and push on main)

on:
  push:
  schedule:
    - cron: '0 * * * 1'

jobs:
  lint-pre-commit:
    container:
      image: carterjones/ci-runner:latest
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - run: pre-commit run --all

  lint-terraform:
    container:
      image: carterjones/ci-runner:latest
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - run: cd terraform && ./lint.sh
        env:
          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

  build-and-push:
    runs-on: ubuntu-latest
    needs: lint-pre-commit
    strategy:
      matrix:
        os: ["ci-runner", "arch", "centos-7", "centos-8", "manjaro", "ubuntu-20.04"]
    steps:
      - uses: actions/checkout@v2
      - name: build ${{ matrix.os }} (and push when on main branch)
        run: cd docker && ./release.sh ${{ matrix.os }}
        env:
          DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
          DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}<commit_msg>use ubuntu-20.04 rather than ubuntu-latest<commit_after>name: lint/build (and push on main)

on:
  push:
  schedule:
    - cron: '0 * * * 1'

jobs:
  lint-pre-commit:
    container:
      image: carterjones/ci-runner:latest
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - run: pre-commit run --all

  lint-terraform:
    container:
      image: carterjones/ci-runner:latest
    runs-on: ubuntu-20.04
    steps:
      - uses: actions/checkout@v2
      - run: cd terraform && ./lint.sh
        env:
          AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
          AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

  build-and-push:
    runs-on: ubuntu-20.04
    needs: lint-pre-commit
    strategy:
      matrix:
        os: ["ci-runner", "arch", "centos-7", "centos-8", "manjaro", "ubuntu-20.04"]
    steps:
      - uses: actions/checkout@v2
      - name: build ${{ matrix.os }} (and push when on main branch)
        run: cd docker && ./release.sh ${{ matrix.os }}
        env:
          DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
          DOCKERHUB_PASSWORD: ${{ secrets.DOCKERHUB_PASSWORD }}
{'fraction_non_alphanumeric': 0.1375985977212971, 'fraction_numerical': 0.016652059596844872, 'mean_word_length': 2.352422907488987, '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': '3184919', 'n_tokens_mistral': 871, 'n_tokens_neox': 826, 'n_words': 164}