diff options
author | Thom May <thom@chef.io> | 2017-09-22 15:12:11 +0100 |
---|---|---|
committer | Thom May <thom@chef.io> | 2017-09-22 15:12:11 +0100 |
commit | 47703c12782d7e969d10237d8a0ba2e530599e97 (patch) | |
tree | a2da89d632252dfb264804eb64f96d5c7edf8414 | |
parent | 15149399f5eb1dc0cd2ca09ca1e3d1aa30b478db (diff) | |
download | ohai-tm/expedite.tar.gz |
Expedite-ify ohaitm/expedite
Signed-off-by: Thom May <thom@chef.io>
-rw-r--r-- | .expeditor/config.yml | 51 | ||||
-rwxr-xr-x | .expeditor/update_version.sh | 15 | ||||
-rw-r--r-- | VERSION | 1 |
3 files changed, 67 insertions, 0 deletions
diff --git a/.expeditor/config.yml b/.expeditor/config.yml new file mode 100644 index 00000000..cb9ba3e4 --- /dev/null +++ b/.expeditor/config.yml @@ -0,0 +1,51 @@ +# Documentation available at https://expeditor-docs.es.chef.io/ + +# Slack channel in Chef Software slack to send notifications about build failures, etc +slack: + notify_channel: chef-notify + +# Which Ruby Gems, built when the Omnibus package is built, to publish to rubygems.org +# This publish is triggered by the `built_in:publish_rubygems` artifact_action. +rubygems: + - ohai + +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. + version_file: "VERSION" + # The file where our CHANGELOG is kept. This file is updated automatically with + # details from the Pull Request via the `built_in:update_changelog` merge_action. + changelog_file: "CHANGELOG.md" + # The tag format to use (e.g. v1.0.0) + version_tag_format: "v{{version}}" + # The Github Team primarily responsible for handling incoming Pull Requests. + maintainer_group: chef/client-maintainers + +# These actions are taken, in order they are specified, anytime a Pull Request is merged. +merge_actions: + - built_in:bump_version: + ignore_labels: + - "Version: Skip Bump" + - "Expeditor: Skip Version Bump" + - "Expeditor: Skip All" + - bash:.expeditor/update_version.sh: + only_if: built_in:bump_version + - built_in:update_changelog: + ignore_labels: + - "Meta: Exclude From Changelog" + - "Expeditor: Exclude From Changelog" + - "Expeditor: Skip All" + - built_in:trigger_omnibus_release_build: + ignore_labels: + - "Omnibus: Skip Build" + - "Expeditor: Skip Build" + - "Expeditor: Skip All" + only_if: built_in:bump_version + +# These actions are taken, in the order specified, when an Omnibus artifact is promoted +# within Chef's internal artifact storage system. +artifact_actions: + promoted_to_stable: + - built_in:publish_rubygems + - built_in:rollover_changelog + - built_in:notify_chefio_slack_channels diff --git a/.expeditor/update_version.sh b/.expeditor/update_version.sh new file mode 100755 index 00000000..08011a03 --- /dev/null +++ b/.expeditor/update_version.sh @@ -0,0 +1,15 @@ +#!/bin/sh +# +# After a PR merge, Chef Expeditor will bump the PATCH version in the VERSION file. +# It then executes this file to update any other files/components with that new version. +# + +set -evx + +sed -i -r "s/VERSION =\".+\"/VERSION = \"$(cat VERSION)\"/" lib/ohai/version.rb + +# Update the version inside Gemfile.lock +bundle update ohai + +# Once Expeditor finshes executing this script, it will commit the changes and push +# the commit as a new tag corresponding to the value in the VERSION file. diff --git a/VERSION b/VERSION new file mode 100644 index 00000000..c27905ac --- /dev/null +++ b/VERSION @@ -0,0 +1 @@ +13.4.1 |