project:
  alias: omnitruck

slack:
  notify_channel: releng-notify
  
github:
  delete_branch_on_merge: true
  major_bump_labels:
    - "Expeditor: Bump Version Major"
  minor_bump_labels:
    - "Expeditor: Bump Version Minor"


# These are our Buildkite pipelines where deploys take place
pipelines: 
  - verify
  - docker/build

subscriptions:
  - workload: pull_request_merged:{{github_repo}}:{{release_branch}}:*
    actions:
      - built_in:bump_version:
          ignore_labels:
            - "Expeditor: Skip Version Bump"
            - "Expeditor: Skip All"
      - bash:.expeditor/update_version.sh:
          only_if: built_in:bump_version
      - built_in:update_changelog:
          ignore_labels:
            - "Expeditor: Skip Changelog"
            - "Expeditor: Skip All"
      - trigger_pipeline:docker/build:
          post_commit: true
          ignore_labels:
            - "Expeditor: Skip All"
            - "Expeditor: Skip Docker"
  - workload: project_promoted:{{agent_id}}:*
    actions:
      - built_in:promote_docker_images

project:
  alias: omnitruck

slack:
  notify_channel: releng-notify
  
github:
  delete_branch_on_merge: true
  major_bump_labels:
    - "Expeditor: Bump Version Major"
  minor_bump_labels:
    - "Expeditor: Bump Version Minor"

helm_charts:
  - charts/omnitruck

# These are our Buildkite pipelines where deploys take place
pipelines: 
  - verify
  - docker/build

subscriptions:
  - workload: pull_request_merged:{{github_repo}}:{{release_branch}}:*
    actions:
      - built_in:bump_version:
          ignore_labels:
            - "Expeditor: Skip Version Bump"
            - "Expeditor: Skip All"
      - bash:.expeditor/update_version.sh:
          only_if: built_in:bump_version
      - built_in:publish_helm_charts:
          only_if: bash:.expeditor/update_version.sh
          only_if_modified:
            - charts/*
            - Dockerfile
            - lib/*
            - app.rb
            - platforms.rb
            - poller
      - built_in:update_changelog:
          ignore_labels:
            - "Expeditor: Skip Changelog"
            - "Expeditor: Skip All"
      - trigger_pipeline:docker/build:
          post_commit: true
          ignore_labels:
            - "Expeditor: Skip All"
            - "Expeditor: Skip Docker"
  - workload: project_promoted:{{agent_id}}:*
    actions:
      - built_in:promote_docker_images

Add in publish helm chart
Add in publish helm chart

Signed-off-by: Michael Maslanka <f63ddc84b639dffdba10922670d69e8d7e3f5764@progress.com>
