Skip to content

Commit

Permalink
re-working expeditor config
Browse files Browse the repository at this point in the history
you will need to manually create the habitat packages: workstation-build, stable, workstation-LTS for this workflow to work properlly

for now i will create them via the build, just once, then undo the commit

Signed-off-by: Sean Simmons <[email protected]>
  • Loading branch information
sean-simmons-progress committed Dec 23, 2024
1 parent 782c9cf commit 7c16c79
Showing 1 changed file with 27 additions and 17 deletions.
44 changes: 27 additions & 17 deletions .expeditor/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,21 @@ rubygems:
artifact_channels:
- workstation-build
- stable
- workstation-LTS

pipelines:
- verify:
description: Pull Request validation tests
public: true
- habitat/build:
description: Build the Habitat packages for faixhai
- habitat/test:
definition: .expeditor/habitat-test.pipeline.yml
trigger: default

release_branches:
- workstation-LTS:
version_constraint: 9.*
version_constraint: 10.*
- main:
version_constraint: 9.*

Expand Down Expand Up @@ -50,27 +61,26 @@ subscriptions:
- "Expeditor: Skip All"
- built_in:build_gem:
only_if: built_in:bump_version
- trigger_pipeline:habitat/publish:
- trigger_pipeline:habitat/build:
only_if: built_in:bump_version
ignore_labels:
- "Expeditor: Skip Habitat"
- "Expeditor: Skip All"

Check failure on line 68 in .expeditor/config.yml

View check run for this annotation

Chef Expeditor / Expeditor Config Validation

.expeditor/config.yml#L48-L68

Mixed up pre-commit/post-commit actions. A post commit action happens before a pre-commit
- trigger_pipeline:habitat/test:
only_if: built_in:bump_version
ignore_labels:
- "Expeditor: Skip Habitat"
- "Expeditor: Skip All"
- workload: project_promoted:{{agent_id}}:*
actions:
- built_in:rollover_changelog
- built_in:publish_rubygems

# Automatically TEST then promote the Habitat packages from unstable to workstation-build upon successful build
- workload: buildkite_hab_build_group_published:{{agent_id}}:*
actions:
# when all of the hab package publish to the unstable channel, test and promote them
- bash:.expeditor/promote-hab-pkg.sh
- trigger_pipeline:habitat/test
- built_in:promote_habitat_packages

pipelines:
- verify:
description: Pull Request validation tests
public: true
# Subscribe to the promotion of the workstation-build channel to stable
- workload: project_promoted:{{agent_id}}:workstation-build:*
actions:
- built_in:promote_habitat_packages

# Subscribe to the promotion of the stable channel to workstation-LTS
- workload: project_promoted:{{agent_id}}:stable:*
actions:
- built_in:promote_habitat_packages
- built_in:rollover_changelog
- built_in:publish_rubygems

0 comments on commit 7c16c79

Please sign in to comment.