This repository has been archived by the owner on Jul 14, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1213 from chef/tduffield/add-expeditor-config
Add expeditor
- Loading branch information
Showing
4 changed files
with
91 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# The name of the product key for this product from mixlib-install | ||
product_key: chefdk | ||
|
||
# Slack channel in Chef Software slack to send notifications about build failures, etc | ||
slack: | ||
notify_channel: chef-notify | ||
|
||
# When a version of ChefDK hits the current channel, build a corresponding Docker image | ||
# and publish that image to https://hub.docker.com/r/chef/chefdk | ||
docker: | ||
enable: true | ||
build_args: | ||
CHANNEL: "{{channel}}" | ||
VERSION: "{{version}}" | ||
|
||
github: | ||
# The file where the MAJOR.MINOR.PATCH version is kept | ||
version_file: "VERSION" | ||
|
||
# When a PR is merged, bump the PATCH version | ||
bump_version_on_merge: true | ||
|
||
# After the PATCH version has been bumped, execute this script | ||
# to distribute that version to other files in the repository. | ||
update_version_script: ".expeditor/update_version.sh" | ||
|
||
# The tag format Expeditor should use when tagging version commits | ||
version_tag_format: "v{{version}}" | ||
|
||
# After the version is bumped and the tag is pushed to Github, trigger a Jenkins build | ||
trigger_build_on_bump: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
#!/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 | ||
|
||
# The github-changelog-generator requires that LANG be set | ||
export LANG=en_US.UTF-8 | ||
|
||
# Only install groups required to run the Rake command | ||
export BUNDLE_WITHOUT=omnibus_package:test:aix:bsd:linux:mac_os_x:solaris:windows:default | ||
|
||
# We need to run a bundle install so that our `bundle exec rake` command will work. | ||
gem environment | ||
omnibus_bundler=$(grep bundler omnibus_overrides.rb | cut -d'"' -f2) | ||
gem install bundler -v $omnibus_bundler --user-install --conservative | ||
bundle install | ||
|
||
# Run a rake command that will update various files in chef/chef-dk with the new VERSION | ||
bundle exec rake version:update | ||
|
||
# Run the following commands to update the changelog and dockerfile, but ignore errors. | ||
bundle exec rake changelog:update || true | ||
bundle exec rake update_dockerfile || true | ||
|
||
# Our `rake` command can sometimes modify this file, but we don't care about the | ||
# changes it makes. Reset it to HEAD. | ||
git checkout .bundle/config | ||
|
||
# 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. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
2.0.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters