<commit_before>name: image
on:
  push:
    tags:
    - '*'
jobs:
  build-image:
    runs-on: ubuntu-latest
    env:
      EXTRA_TAGS: canary snapshot
    steps:
    - name: Configure envvars
      run: |
        GIT_TAG="${GITHUB_REF#refs/tags/}"
        TAGS=$(
          for repository in quay.io/jcmoraisjr jcmoraisjr; do
            for project in haproxy-ingress; do
              for tag in "$GIT_TAG" ${{ env.EXTRA_TAGS }}; do
                echo -n "${repository}/${project}:${tag},"
              done
            done
          done
        )
        echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV
        echo "TAGS=$TAGS" >> $GITHUB_ENV
    - uses: actions/checkout@v2
    - uses: docker/login-action@v1 
      with:
        username: jcmoraisjr
        password: ${{ secrets.DOCKERHUB_TOKEN }}
    - uses: docker/login-action@v1 
      with:
        registry: quay.io
        username: ${{ secrets.QUAY_USERNAME }}
        password: ${{ secrets.QUAY_TOKEN }}
    - uses: docker/setup-buildx-action@v1
    - uses: docker/build-push-action@v2
      with:
        context: .
        file: builder/Dockerfile
        platforms: linux/amd64,linux/arm64/v8
        push: true
        build-args: |
          GIT_TAG=${{ env.GIT_TAG }}
        tags: ${{ env.TAGS }}<commit_msg>add new target platforms<commit_after>name: image
on:
  push:
    tags:
    - '*'
jobs:
  build-image:
    runs-on: ubuntu-latest
    env:
      EXTRA_TAGS: canary snapshot
    steps:
    - name: Configure envvars
      run: |
        GIT_TAG="${GITHUB_REF#refs/tags/}"
        TAGS=$(
          for repository in quay.io/jcmoraisjr jcmoraisjr; do
            for project in haproxy-ingress; do
              for tag in "$GIT_TAG" ${{ env.EXTRA_TAGS }}; do
                echo -n "${repository}/${project}:${tag},"
              done
            done
          done
        )
        echo "GIT_TAG=$GIT_TAG" >> $GITHUB_ENV
        echo "TAGS=$TAGS" >> $GITHUB_ENV
    - uses: actions/checkout@v2
    - uses: docker/login-action@v1 
      with:
        username: jcmoraisjr
        password: ${{ secrets.DOCKERHUB_TOKEN }}
    - uses: docker/login-action@v1 
      with:
        registry: quay.io
        username: ${{ secrets.QUAY_USERNAME }}
        password: ${{ secrets.QUAY_TOKEN }}
    - uses: docker/setup-qemu-action@v1
    - uses: docker/setup-buildx-action@v1
    - uses: docker/build-push-action@v2
      with:
        context: .
        file: builder/Dockerfile
        platforms: linux/amd64,linux/arm64/v8,linux/arm/v7,linux/arm/v6,linux/s390x
        push: true
        build-args: |
          GIT_TAG=${{ env.GIT_TAG }}
        tags: ${{ env.TAGS }}
{'fraction_non_alphanumeric': 0.12722453616054524, 'fraction_numerical': 0.009844755774327906, 'mean_word_length': 1.8408602150537634, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, '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': '3192698', 'n_tokens_mistral': 949, 'n_tokens_neox': 905, 'n_words': 173}