-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[SHACK-357] Include latest stable release of ChefDK
Expeditor will manage the pinned version for us. Whenever ChefDK is released it will update the omnibus pin. Signed-off-by: tyler-ball <tball@chef.io>
- Loading branch information
1 parent
7e9252b
commit 4c1811e
Showing
3 changed files
with
37 additions
and
31 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
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,30 @@ | ||
#!/bin/bash | ||
|
||
############################################################################ | ||
# What is this script? | ||
# | ||
# Chef Workstation uses Expeditor to manage the bundled version of the ChefDK. | ||
# Currently we always want to include the stable version of ChefDK inside | ||
# Workstation, so this script takes that version and uses sed to insert | ||
# it into the omnibus project definition. Then it commits that change | ||
# and opens a pull request for review and merge. | ||
############################################################################ | ||
|
||
set -evx | ||
|
||
branch="expeditor/chef_dk_${VERSION}" | ||
git checkout -b "$branch" | ||
|
||
sed -i -r "s/override :\"chef-dk\",\s+version: \"v[^\"]+\"/override :\"chef-dk\", version: \"v${VERSION}\"/" omnibus/config/projects/chef-workstation.rb | ||
|
||
git add . | ||
|
||
# give a friendly message for the commit and make sure it's noted for any future audit of our codebase that no | ||
# DCO sign-off is needed for this sort of PR since it contains no intellectual property | ||
git commit --message "Bump ChefDK to $VERSION" --message "This pull request was triggered automatically via Expeditor when ChefDK $VERSION was promoted to stable." --message "This change falls under the obvious fix policy so no Developer Certificate of Origin (DCO) sign-off is required." | ||
|
||
open_pull_request | ||
|
||
# Get back to master and cleanup the leftovers - any changed files left over at the end of this script will get committed to master. | ||
git checkout - | ||
git branch -D "$branch" |
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