<commit_before><commit_msg>feat(GAdocker): Publish docker image with Github Actions (#206)<commit_after>name: Publish Docker image

on:
  push:
    branches:
      - 'master'
    tags:
      - '*'

jobs:
  docker:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2

      - name: Set up QEMU
        uses: docker/setup-qemu-action@v1

      - name: Set up Docker Buildx
        uses: docker/setup-buildx-action@v1

      - name: Login to DockerHub
        uses: docker/login-action@v1
        with:
          username: ${{ secrets.DOCKERHUB_USERNAME }}
          password: ${{ secrets.DOCKERHUB_TOKEN }}

      -
        name: Docker meta
        id: meta
        uses: docker/metadata-action@v3
        with:
          images: vuls/go-cve-dictionary
          tags: |
            type=ref,event=tag

      - name: Build and push
        uses: docker/build-push-action@v2
        with:
          push: true
          tags: |
            vuls/go-cve-dictionary:latest
            ${{ steps.meta.outputs.tags }}
          secrets: |
            "github_token=${{ secrets.GITHUB_TOKEN }}"
{'fraction_non_alphanumeric': 0.10717449069973428, 'fraction_numerical': 0.007971656333038087, 'mean_word_length': 1.7427184466019416, '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': '6519958', 'n_tokens_mistral': 376, 'n_tokens_neox': 353, 'n_words': 76}