<commit_before>---
pipeline:
  build:
    privileged: true
    image: rancher/dapper:1.11.2
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    commands:
    - dapper ci

  stage-binaries:
    image: rancher/dapper:1.11.2
    commands:
    - cp -r ./bin/* ./package/
    when:
      branch: master
      event: [push,tag]

  docker-publish-master:
    image: plugins/docker
    dockerfile: package/Dockerfile
    repo: rancher/rancher
    context: package/
    tag: master
    secrets: [docker_username, docker_password]
    build_args:
    - VERSION=master
    when:
      branch: master
      event: push

  docker-publish-master-agent:
    image: plugins/docker
    dockerfile: package/Dockerfile.agent
    repo: rancher/rancher-agent
    context: package/
    tag: master
    secrets: [docker_username, docker_password]
    build_args:
    - VERSION=master
    when:
      branch: master
      event: push

  docker-publish:
    image: plugins/docker
    dockerfile: package/Dockerfile
    repo: rancher/rancher
    context: package/
    tag: ${DRONE_TAG}
    secrets: [docker_username, docker_password]
    build_args:
    - VERSION=${DRONE_TAG}
    when:
      branch: master
      event: tag

  docker-publish-agent:
    image: plugins/docker
    dockerfile: package/Dockerfile.agent
    repo: rancher/rancher-agent
    context: package/
    tag: ${DRONE_TAG}
    secrets: [docker_username, docker_password]
    build_args:
    - VERSION=${DRONE_TAG}
    when:
      branch: master
      event: tag

  github_binary_release:
    image: plugins/github-release
    files:
     - bin/*
    checksum:
     - sha256
    secrets: [github_token]
    when:
      branch: master
      event: tag<commit_msg>Don't publish binaries<commit_after>---
pipeline:
  build:
    privileged: true
    image: rancher/dapper:1.11.2
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock
    commands:
    - dapper ci

  stage-binaries:
    image: rancher/dapper:1.11.2
    commands:
    - cp -r ./bin/* ./package/
    when:
      branch: master
      event: [push,tag]

  docker-publish-master:
    image: plugins/docker
    dockerfile: package/Dockerfile
    repo: rancher/rancher
    context: package/
    tag: master
    secrets: [docker_username, docker_password]
    build_args:
    - VERSION=master
    when:
      branch: master
      event: push

  docker-publish-master-agent:
    image: plugins/docker
    dockerfile: package/Dockerfile.agent
    repo: rancher/rancher-agent
    context: package/
    tag: master
    secrets: [docker_username, docker_password]
    build_args:
    - VERSION=master
    when:
      branch: master
      event: push

  docker-publish:
    image: plugins/docker
    dockerfile: package/Dockerfile
    repo: rancher/rancher
    context: package/
    tag: ${DRONE_TAG}
    secrets: [docker_username, docker_password]
    build_args:
    - VERSION=${DRONE_TAG}
    when:
      branch: master
      event: tag

  docker-publish-agent:
    image: plugins/docker
    dockerfile: package/Dockerfile.agent
    repo: rancher/rancher-agent
    context: package/
    tag: ${DRONE_TAG}
    secrets: [docker_username, docker_password]
    build_args:
    - VERSION=${DRONE_TAG}
    when:
      branch: master
      event: tag

  github_binary_release:
    image: plugins/github-release
    files:
     - bin/rancher-*
    checksum:
     - sha256
    secrets: [github_token]
    when:
      branch: master
      event: tag
{'fraction_non_alphanumeric': 0.09904430929626412, 'fraction_numerical': 0.006371271358239212, 'mean_word_length': 2.4265873015873014, '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': '2577626', 'n_tokens_mistral': 1191, 'n_tokens_neox': 1141, 'n_words': 247}