-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add updatecli configs for agent stack (#193)
- Loading branch information
1 parent
eaf1265
commit 0222702
Showing
3 changed files
with
108 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,32 @@ | ||
name: Bump Agent Chart Major Version | ||
sources: | ||
currentAgentChartVersion: | ||
kind: helmchart | ||
spec: | ||
url: https://observeinc.github.io/helm-charts | ||
name: agent | ||
versionfilter: | ||
kind: "latest" | ||
conditions: | ||
chartChanged: | ||
name: "Check if charts/agent/ has changes" | ||
kind: shell | ||
spec: | ||
command: git diff --quiet --name-only origin/main...HEAD -- charts/agent/ && git diff --quiet --name-only -- charts/agent/ && exit 1 || exit 0 | ||
disablesourceinput: true | ||
breakingChanges: | ||
name: "Check if commit message is a breaking change" | ||
kind: shell | ||
spec: | ||
command: git log -1 --no-merges --pretty=%s | tail -n 1 | grep "BREAKING CHANGE" | ||
disablesourceinput: true | ||
targets: | ||
updateAgentChartMajor: | ||
name: "Bump Major Version" | ||
kind: yaml | ||
sourceid: currentAgentChartVersion | ||
transformers: | ||
- semverinc: "major" | ||
spec: | ||
file: "charts/agent/Chart.yaml" | ||
key: "$.version" |
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,38 @@ | ||
name: Bump Agent Chart Minor Version | ||
sources: | ||
currentAgentChartVersion: | ||
kind: helmchart | ||
spec: | ||
url: https://observeinc.github.io/helm-charts | ||
name: agent | ||
versionfilter: | ||
kind: "latest" | ||
conditions: | ||
chartChanged: | ||
name: "Check if charts/agent/ has changes" | ||
kind: shell | ||
spec: | ||
command: git diff --quiet --name-only origin/main...HEAD -- charts/agent/ && git diff --quiet --name-only -- charts/agent/ && exit 1 || exit 0 | ||
disablesourceinput: true | ||
nonBreakingChanges: | ||
name: "Check if commit is non-breaking" | ||
kind: shell | ||
spec: | ||
command: git log -1 --no-merges --pretty=%s | tail -n 1 | grep -v "BREAKING CHANGE" | ||
disablesourceinput: true | ||
isAFeatCommit: | ||
name: "Check if commit is a feature" | ||
kind: shell | ||
spec: | ||
command: git log -1 --no-merges --pretty=%s | tail -n 1 | grep "feat" | ||
disablesourceinput: true | ||
targets: | ||
updateAgentChartMinor: | ||
name: "Bump Minor Version" | ||
kind: yaml | ||
sourceid: currentAgentChartVersion | ||
transformers: | ||
- semverinc: "minor" | ||
spec: | ||
file: "charts/agent/Chart.yaml" | ||
key: "$.version" |
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,38 @@ | ||
name: Bump Agent Chart Patch Version | ||
sources: | ||
currentAgentChartVersion: | ||
kind: helmchart | ||
spec: | ||
url: https://observeinc.github.io/helm-charts | ||
name: agent | ||
versionfilter: | ||
kind: "latest" | ||
conditions: | ||
chartChanged: | ||
name: "Check if charts/agent/ has changes" | ||
kind: shell | ||
spec: | ||
command: git diff --quiet --name-only origin/main...HEAD -- charts/agent/ && git diff --quiet --name-only -- charts/agent/ && exit 1 || exit 0 | ||
disablesourceinput: true | ||
nonBreakingChanges: | ||
name: "Check if commit is non-breaking" | ||
kind: shell | ||
spec: | ||
command: git log -1 --no-merges --pretty=%s | tail -n 1 | grep -v "BREAKING CHANGE" | ||
disablesourceinput: true | ||
isAFixCommit: | ||
name: "Check if commit is a fix" | ||
kind: shell | ||
spec: | ||
command: git log -1 --no-merges --pretty=%s | tail -n 1 | grep "fix" | ||
disablesourceinput: true | ||
targets: | ||
updateAgentChartPatch: | ||
name: "Bump Patch Version" | ||
kind: yaml | ||
sourceid: currentAgentChartVersion | ||
transformers: | ||
- semverinc: "patch" | ||
spec: | ||
file: "charts/agent/Chart.yaml" | ||
key: "$.version" |