diff --git a/.expeditor/config.yml b/.expeditor/config.yml index 4216363..6ddad90 100644 --- a/.expeditor/config.yml +++ b/.expeditor/config.yml @@ -81,7 +81,7 @@ subscriptions: # 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:* actions: - - bash:.expeditor/scripts/promote-hab-pkgs.sh: + - bash:.expeditor/scripts/promote-hab-pkg.sh: post_commit: true staging_areas: diff --git a/.expeditor/promote-hab-pkg.sh b/.expeditor/promote-hab-pkg.sh index 12e49b6..cd4f7ee 100644 --- a/.expeditor/promote-hab-pkg.sh +++ b/.expeditor/promote-hab-pkg.sh @@ -12,7 +12,7 @@ # set -eou pipefail -printenv | grep EXPEDITOR +# printenv | grep EXPEDITOR # Export the HAB_AUTH_TOKEN for use of promoting habitat packages to {{EXPEDITOR_TARGET_CHANNEL}} HAB_AUTH_TOKEN=$(vault kv get -field auth_token account/static/habitat/chef-ci) @@ -33,8 +33,7 @@ else fi # Promote the artifacts in Habitat Depot -if [[ "${EXPEDITOR_PKG_ORIGIN}" == "core" ]]; -then +if [[ "${EXPEDITOR_PKG_ORIGIN}" == "core" ]]; then echo "Skipping promotion of core origin package ${EXPEDITOR_PKG_ORIGIN}" else echo "Promoting ${EXPEDITOR_PKG_IDENT} to the ${EXPEDITOR_TARGET_CHANNEL} channel"