<commit_before>build:
  # You can add any tests to this section
  image: python:2
  commands:
    - echo "Building..."

publish:
  # This section will publish a docker image with a tag matching the git branch
  docker:
    repo: $$DOCKER_USERNAME/$$DOCKER_REPO
    tag: "$${BRANCH##feature/}"
    username: $$DOCKER_USERNAME
    password: <PASSWORD>
    email: $$DOCKER_EMAIL

  # This section will publish a docker image tagged "latest" if the branch is master
  docker:
    repo: $$DOCKER_USERNAME/$$DOCKER_REPO
    tag: "latest"
    username: $$DOCKER_USERNAME
    password: <PASSWORD>
    email: $$DOCKER_EMAIL
    when:
      branch: "master"

deploy:
  webhook:
    image: plugins/drone-webhook
    skip_verify: true
    method: POST
    auth:
      username: $$MANTL_USERNAME
      password: <PASSWORD>
    urls:
      - https://$$MANTL_CONTROL/marathon/v2/apps/$$DEPLOYMENT_DIR/$$BOT_NAME/$$DOCKER_USERNAME/restart?force=true
    when:
      branch: "master"

notify:
  # This section will send build notifications via Cisco Spark.
  spark:
    image: hpreston/drone-spark
    roomId: $$SPARK_ROOM
    auth_token: $$SPARK_TOKEN<commit_msg>updated drone.yml<commit_after>build:
  # You can add any tests to this section
  image: python:2
  commands:
    - echo "Building..."

publish:
  docker:
    repo: $$DOCKER_USERNAME/$$DOCKER_REPO
    tag: "latest"
    username: $$DOCKER_USERNAME
    password: <PASSWORD>
    email: $$DOCKER_EMAIL

deploy:
  webhook:
    image: plugins/drone-webhook
    skip_verify: true
    method: POST
    auth:
      username: $$MANTL_USERNAME
      password: <PASSWORD>
    urls:
      - https://$$MANTL_CONTROL/marathon/v2/apps/$$DEPLOYMENT_DIR/$$BOT_NAME/$$DOCKER_USERNAME/restart?force=true
    when:
      branch: "master"

notify:
  # This section will send build notifications via Cisco Spark.
  spark:
    image: hpreston/drone-spark
    roomId: $$SPARK_ROOM
    auth_token: $$SPARK_TOKEN
{'fraction_non_alphanumeric': 0.10817805383022774, 'fraction_numerical': 0.002070393374741201, 'mean_word_length': 3.2390350877192984, 'pattern_counts': {'":': 0, '<': 8, '<?xml version=': 0, '>': 8, 'https://': 2, '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': '6973729', 'n_tokens_mistral': 692, 'n_tokens_neox': 675, 'n_words': 164}