Skip to content

Commit

Permalink
restore staging area to expeditor
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Wrock <matt@mattwrock.com>
  • Loading branch information
mwrock committed Jan 3, 2025
1 parent a032313 commit 2f207ab
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .expeditor/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# Documentation available at https://expeditor.chef.io/

project:
alias: "habitat"

github:
# The file where the MAJOR.MINOR.PATCH version is kept. The version in this file
# is bumped automatically via the `built_in:bump_version` merge_action.
Expand Down Expand Up @@ -36,6 +39,10 @@ release_branches:
- v1.6:
version_constraint: 1.*

staging_areas:
- release_staging:
workload: pull_request_merged:{{github_repo}}:{{release_branch}}:*

subscriptions:
- workload: pull_request_opened:{{github_repo}}:{{release_branch}}:*
actions:
Expand All @@ -46,7 +53,7 @@ subscriptions:
only_if_team_member:
- habitat-sh/habitat-core-maintainers

- workload: pull_request_merged:{{github_repo}}:{{release_branch}}:*
- workload: staged_workload_released:{{agent_id}}:release_staging:*
actions:
- built_in:bump_version
- built_in:update_changelog
Expand All @@ -59,19 +66,25 @@ subscriptions:
- workload: buildkite_build_passed:{{agent_id}}:release_habitat:*
actions:
- trigger_pipeline:end_to_end
- unlock_staging_area:release_staging:
always_run: true
- bash:.expeditor/scripts/release_habitat/expeditor_destroy_build_channel.sh:
always_run: true
post_commit: true

# Make sure we unlock to allow later builds if one fails.
- workload: buildkite_build_failed:{{agent_id}}:release_habitat:*
actions:
- unlock_staging_area:release_staging:
always_run: true
- bash:.expeditor/scripts/release_habitat/expeditor_destroy_build_channel.sh:
always_run: true
post_commit: true

- workload: buildkite_build_canceled:{{agent_id}}:release_habitat:*
actions:
- unlock_staging_area:release_staging:
always_run: true
- bash:.expeditor/scripts/release_habitat/expeditor_destroy_build_channel.sh:
always_run: true
post_commit: true
Expand Down

0 comments on commit 2f207ab

Please sign in to comment.