forked from berkshelf/berkshelf
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support to publish gem via expeditor
Signed-off-by: sachin007jain <[email protected]>
- Loading branch information
sachin007jain
committed
Jun 12, 2022
1 parent
ad0b5f7
commit 776af38
Showing
6 changed files
with
104 additions
and
6 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,56 @@ | ||
# Documentation available at https://expeditor.chef.io/docs/getting-started/ | ||
--- | ||
|
||
# Slack channel in Chef Software slack to send notifications about build failures, etc | ||
slack: | ||
notify_channel: chef-ws-notify | ||
|
||
# This publish is triggered by the `built_in:publish_rubygems` artifact_action. | ||
rubygems: | ||
- berkshelf | ||
|
||
github: | ||
# This deletes the GitHub PR branch after successfully merged into the release branch | ||
delete_branch_on_merge: true | ||
# The tag format to use (e.g. v1.0.0) | ||
version_tag_format: "v{{version}}" | ||
# allow bumping the minor release via label | ||
minor_bump_labels: | ||
- "Expeditor: Bump Version Minor" | ||
# allow bumping the major release via label | ||
major_bump_labels: | ||
- "Expeditor: Bump Version Major" | ||
|
||
release_branches: | ||
- main: | ||
version_constraint: 8* | ||
|
||
changelog: | ||
rollup_header: Changes not yet released to rubygems.org | ||
|
||
subscriptions: | ||
# These actions are taken, in order they are specified, anytime a Pull Request is merged. | ||
- workload: pull_request_merged:{{github_repo}}:{{release_branch}}:* | ||
actions: | ||
- built_in:bump_version: | ||
ignore_labels: | ||
- "Expeditor: Skip Version Bump" | ||
- "Expeditor: Skip All" | ||
- bash:.expeditor/update_version.sh: | ||
only_if: built_in:bump_version | ||
- built_in:update_changelog: | ||
ignore_labels: | ||
- "Expeditor: Skip Changelog" | ||
- "Expeditor: Skip All" | ||
- built_in:build_gem: | ||
only_if: built_in:bump_version | ||
- workload: project_promoted:{{agent_id}}:* | ||
actions: | ||
- built_in:rollover_changelog | ||
- built_in:publish_rubygems | ||
|
||
pipelines: | ||
- verify: | ||
description: Pull Request validation tests | ||
public: 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,16 @@ | ||
#!/bin/bash | ||
# | ||
# setups up the bundler to caching, then run the script | ||
|
||
set -ue | ||
|
||
export USER="root" | ||
export LANG=C.UTF-8 LANGUAGE=C.UTF-8 | ||
|
||
echo "--- bundle install" | ||
|
||
bundle config --local path vendor/bundle | ||
bundle install --jobs=7 --retry=3 | ||
|
||
echo "+++ bundle exec task" | ||
bundle exec $@ |
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,12 @@ | ||
#!/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/^(\s*)VERSION = \".+\"/\1VERSION = \"$(cat VERSION)\"/" lib/berkshelf/version.rb | ||
|
||
# Once Expeditor finishes 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,10 @@ | ||
--- | ||
expeditor: | ||
cached_folders: | ||
- vendor | ||
defaults: | ||
buildkite: | ||
retry: | ||
automatic: | ||
limit: 1 | ||
timeout_in_minutes: 30 |
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 @@ | ||
8.0.2 |