Skip to content

Commit

Permalink
Merge pull request #52 from chef/fixing_config
Browse files Browse the repository at this point in the history
Updated config.yml to promote without calling sh file
  • Loading branch information
sanghinitin authored Jan 7, 2025
2 parents e01555b + 9dfeca1 commit affa408
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 54 deletions.
28 changes: 15 additions & 13 deletions .expeditor/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ rubygems:
- fauxhai-chef

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

pipelines:
Expand All @@ -20,9 +20,18 @@ pipelines:
public: true
- habitat/build:
description: Build the Habitat packages for faixhai
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
trigger: default
trigger: pull_request
env:
- HAB_NONINTERACTIVE: "true"
- HAB_NOCOLORING: "true"
- HAB_STUDIO_SECRET_HAB_NONINTERACTIVE: "true"

release_branches:
- workstation-LTS:
Expand Down Expand Up @@ -72,18 +81,11 @@ subscriptions:
actions:
- built_in:promote_habitat_packages


# this is the only way currently to promote built-in rubygems publish
- workload: project_promoted:{{agent_id}}:*
# Subscribe to the promotion of the dev channel to acceptance
- workload: project_promoted:{{agent_id}}:dev:*
actions:
- built_in:promote_habitat_packages

# subscription to fire off any other promotions that you may need for an additional channnel like LTS or something.
- workload: staged_workload_released:{{agent_id}}:workstation_build_promote:*
- workload: project_promoted:{{agent_id}}:workstation-build:*
actions:
- bash:.expeditor/promote-hab-pkg.sh:
post_commit: true

staging_areas:
- workstation_build_promote:
workload: hab_package_published:stable:chef/fauxhai/{{version_constraint}}
- built_in:promote_habitat_packages
41 changes: 0 additions & 41 deletions .expeditor/promote-hab-pkg.sh

This file was deleted.

0 comments on commit affa408

Please sign in to comment.