Skip to content

Commit

Permalink
Sean simmons progress/habitat promote test (#70)
Browse files Browse the repository at this point in the history
* adding version file to src

Signed-off-by: Sean Simmons <[email protected]>

* echo whats my path

Signed-off-by: Sean Simmons <[email protected]>

* echo whats my path

Signed-off-by: Sean Simmons <[email protected]>

* echo whats my path

Signed-off-by: Sean Simmons <[email protected]>

* echo whats my path

Signed-off-by: Sean Simmons <[email protected]>

* echo whats my path

Signed-off-by: Sean Simmons <[email protected]>

* pkg verison

Signed-off-by: Sean Simmons <[email protected]>

* pkg version not liking the symver? keep getting an error with sed -e and an extra'

Signed-off-by: Sean Simmons <[email protected]>

* pkg version not liking the symver? keep getting an error with sed -e and an extra'

Signed-off-by: Sean Simmons <[email protected]>

* it did not like the echo, that was why, also changing order

Signed-off-by: Sean Simmons <[email protected]>

* updating expeditor config to listen on project promoted first, then will test habitat promotion

Signed-off-by: Sean Simmons <[email protected]>

* updating function

Signed-off-by: Sean Simmons <[email protected]>

---------

Signed-off-by: Sean Simmons <[email protected]>
  • Loading branch information
sean-simmons-progress authored Oct 28, 2024
1 parent c053f11 commit 107adf6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .expeditor/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ github:
- "Expeditor: Bump Version Major"

artifact_channels:
- unstable
- dev
- current
- stable

Expand All @@ -46,7 +46,8 @@ pipelines:
env:
- ADHOC: true
- omnibus/release
- habitat/build
- habitat/build:
definition: .expeditor/build.habitat.yml

subscriptions:
- workload: pull_request_merged:{{github_repo}}:{{release_branch}}:*
Expand All @@ -70,6 +71,11 @@ subscriptions:
- "Expeditor: Skip All"
- built_in:build_gem:
only_if: built_in:bump_version
- workload: project_promoted:{{agent_id}}:*
actions:
- built_in:publish_rubygems
- built_in:promote_habitat_packages


#- trigger_pipeline:omnibus/release
# - workload: pull_request_merged:chef/omnibus-software:main:*
Expand Down
3 changes: 2 additions & 1 deletion habitat/plan.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,18 @@ pkg_deps=()
pkg_bin_dirs=(bin)

pkg_version() {
echo "--- pgk_version function"
cat "${SRC_PATH}/VERSION"
}


do_download() {
echo "--- do_download function"
return 0
}

do_setup_environment() {
echo "--- do_setup_environment function"
update_pkg_version
REPO_PATH="$HAB_CACHE_SRC_PATH/$pkg_dirname"
set_runtime_env APP_VERSION "$pkg_version"
set_runtime_env APP_RELEASE "$pkg_release"
Expand Down

0 comments on commit 107adf6

Please sign in to comment.