-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: trigger new version of agent chart upon deploy (#690)
- Loading branch information
Showing
2 changed files
with
19 additions
and
7 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 |
---|---|---|
|
@@ -119,20 +119,21 @@ jobs: | |
repository: leg100/otf-charts | ||
- name: Bump version | ||
run: | | ||
# set app version | ||
yq -i ".appVersion = \"${{ needs.release-please.outputs.version }}\"" ./charts/otf/Chart.yaml | ||
# set app version on all charts | ||
yq -i ".appVersion = \"${{ needs.release-please.outputs.version }}\"" ./charts/otfd/Chart.yaml | ||
yq -i ".appVersion = \"${{ needs.release-please.outputs.version }}\"" ./charts/otf-agent/Chart.yaml | ||
# bump patch in chart version | ||
yq -i '.version |= (split(".") | .[-1] |= ((. tag = "!!int") + 1) | join("."))' ./charts/otf/Chart.yaml | ||
# render README.md to reflect updated version | ||
CHART=otfd make bump | ||
CHART=otf-agent make bump | ||
# re-generate README.md to reflect updated version | ||
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" | ||
brew install norwoodj/tap/helm-docs | ||
make readme | ||
helm-docs | ||
# create branch and commit | ||
git config --global user.email "[email protected]" | ||
git config --global user.name "Chart bumper" | ||
git checkout -b new-otf-version-${{ needs.release-please.outputs.tag_name }} | ||
git add ./charts/otf/Chart.yaml | ||
git add ./README.md | ||
git a -A | ||
git commit -m "New otf version ${{ needs.release-please.outputs.tag_name }}" | ||
git push origin new-otf-version-${{ needs.release-please.outputs.tag_name }} | ||
- name: Create pull request | ||
|
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