<commit_before>
build_binary_latest:
  stage: build
  image:
    name: golang:1.18.0-alpine3.15
  script:
    - go build -o ./weed/weed ./weed 
  rules:
    - if: $CI_COMMIT_TAG

build_container_latest:
  stage: build
  image:
    name: gcr.io/kaniko-project/executor:debug
    entrypoint: [""]
  script:
    - mkdir -p /kaniko/.docker
    - echo "{\"auths\":{\"${CI_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
    - >-
      /kaniko/executor
      --context "${CI_PROJECT_DIR}/docker"
      --dockerfile "${CI_PROJECT_DIR}/docker/Dockerfile.go_build"
      --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}"<commit_msg>Replace with hyphen<commit_after>build-binary-latest:
  stage: build
  image:
    name: golang:1.18.0-alpine3.15
  script:
    - go build -o ./weed/weed ./weed 
  rules:
    - if: $CI_COMMIT_TAG

build-container-latest:
  stage: build
  image:
    name: gcr.io/kaniko-project/executor:debug
    entrypoint: [""]
  script:
    - mkdir -p /kaniko/.docker
    - echo "{\"auths\":{\"${CI_REGISTRY}\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > /kaniko/.docker/config.json
    - >-
      /kaniko/executor
      --context "${CI_PROJECT_DIR}/docker"
      --dockerfile "${CI_PROJECT_DIR}/docker/Dockerfile.go_build"
      --destination "${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG}"
{'fraction_non_alphanumeric': 0.19328307059629884, 'fraction_numerical': 0.01233721727210418, 'mean_word_length': 3.078212290502793, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 7, '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': '600409', 'n_tokens_mistral': 593, 'n_tokens_neox': 558, 'n_words': 88}