Sha256: 3f43eb612f0fbcb8ec59f6c48c622f2c8d098606e9682cc2dacfc87db435b77f
Contents?: true
Size: 1.2 KB
Versions: 2
Compression:
Stored size: 1.2 KB
Contents
#!/bin/bash # # The following standard Expeditor artifact_actions environment variables # are automatically set by the calling process: # # PROMOTABLE - in promotion artifact actions this is a reference to the # source channel. # TARGET_CHANNEL - the channel which we are promoting to # HAB_AUTH_TOKEN - GitHub Auth token used to communicate with the # Habitat depot and private repos in Chef's GitHub org # set -eou pipefail # Export the HAB_AUTH_TOKEN for use of promoting habitat packages to {{TARGET_CHANNE}} HAB_AUTH_TOKEN=$(vault kv get -field auth_token account/static/habitat/chef-ci) export HAB_AUTH_TOKEN if [ "${EXPEDITOR_TARGET_CHANNEL}" = "unstable" ]; then echo "This file does not support actions for artifacts promoted to unstable" exit 1 fi # Promote the artifacts in Habitat Depot jq -r -c ".packages[]" manifest.json | while read -r service_ident; do pkg_origin=${service_ident%/*/*/*} if [ "$pkg_origin" = "core" ]; then echo "Skipping promotion of core origin package ${service_ident}" else echo "Promoting ${service_ident} to the ${EXPEDITOR_TARGET_CHANNEL} channel" hab pkg promote "${service_ident}" "${EXPEDITOR_TARGET_CHANNEL}" fi done
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
OmnibusHarmony-Test-Gem-1.0.32 | .expeditor/scripts/promote-hab-pkgs.sh |
OmnibusHarmony-Test-Gem-1.0.31 | .expeditor/scripts/promote-hab-pkgs.sh |