Skip to content

Commit

Permalink
Merge pull request #51 from chef/fix_promote_berkshelf
Browse files Browse the repository at this point in the history
Updating config to fix promote to dev channel
  • Loading branch information
sanghinitin authored Jan 6, 2025
2 parents 741d64e + 2e6ffad commit 6102699
Showing 1 changed file with 34 additions and 33 deletions.
67 changes: 34 additions & 33 deletions .expeditor/config.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,9 @@
# Documentation available at https://expeditor.chef.io/docs/getting-started/
---

# Slack channel in Chef Software slack to send notifications about build failures, etc
slack:
notify_channel: chef-ws-notify

# This publish is triggered by the `built_in:publish_rubygems` artifact_action.
rubygems:
- berkshelf

artifact_channels:
- dev
- workstation-build
- LTS-2024

github:
# This deletes the GitHub PR branch after successfully merged into the release branch
delete_branch_on_merge: true
Expand All @@ -28,13 +18,36 @@ github:

release_branches:
- workstation-LTS:
version_constraint: 0*
version_constraint: 0.*
- main:
version_constraint: 8*
version_constraint: 8.*

artifact_channels:
- dev
- workstation-build
- LTS-2024

changelog:
rollup_header: Changes not yet released to rubygems.org

pipelines:
- verify:
description: Pull Request validation tests
public: true
- habitat/build:
env:
- HAB_NONINTERACTIVE: "true"
- HAB_NOCOLORING: "true"
- HAB_STUDIO_SECRET_HAB_NONINTERACTIVE: "true"
- habitat/test:
description: Execute tests against the habitat artifact
definition: .expeditor/habitat-test.pipeline.yml
env:
- HAB_NONINTERACTIVE: "true"
- HAB_NOCOLORING: "true"
- HAB_STUDIO_SECRET_HAB_NONINTERACTIVE: "true"
trigger: pull_request

subscriptions:
# These actions are taken, in order they are specified, anytime a Pull Request is merged.
- workload: pull_request_merged:{{github_repo}}:{{release_branch}}:*
Expand All @@ -49,39 +62,27 @@ subscriptions:
ignore_labels:
- "Expeditor: Skip Changelog"
- "Expeditor: Skip All"
- trigger_pipeline:habitat/test:
only_if: built_in:bump_version
ignore_labels:
- "Expeditor: Skip Habitat"
- "Expeditor: Skip All"
- trigger_pipeline:habitat/build:
only_if: built_in:bump_version
ignore_labels:
- "Expeditor: Skip Habitat"
- "Expeditor: Skip All"

# the habitat chain
- workload: buildkite_hab_build_group_published:{{agent_id}}:*
actions:
# when all of the hab package publish to the unstable channel, test and promote them
- built_in:promote_habitat_packages

# Subscribe to the promotion of the dev channel to acceptance
- workload: project_promoted:{{agent_id}}:dev:*
actions:
- built_in:promote_habitat_packages
- workload: project_promoted:{{agent_id}}:workstation-build:*
actions:
- built_in:promote_habitat_packages

pipelines:
- verify:
description: Pull Request validation tests
public: true
env:
- IGNORE_CACHE: true
- habitat/build:
description: Build the Habitat packages for berkshelf
env:
- HAB_NONINTERACTIVE: "true"
- HAB_NOCOLORING: "true"
- HAB_STUDIO_SECRET_HAB_NONINTERACTIVE: "true"
- habitat/test:
description: Execute tests against the habitat artifact
definition: .expeditor/habitat-test.pipeline.yml
env:
- HAB_NONINTERACTIVE: "true"
- HAB_NOCOLORING: "true"
- HAB_STUDIO_SECRET_HAB_NONINTERACTIVE: "true"
trigger: pull_request

0 comments on commit 6102699

Please sign in to comment.