Skip to content

Commit

Permalink
split enterprise in their own group and extend the params (#308)
Browse files Browse the repository at this point in the history
* split enterprise in their own group

* add more params
  • Loading branch information
stavros-k authored Aug 30, 2024
1 parent b229fda commit d4a2458
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/renovate-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ module.exports = {
// Execute the following commands for every dep.
executionMode: "update",
commands: [
"./.github/scripts/renovate_bump.sh {{{packageFileDir}}} {{{updateType}}}",
// https://docs.renovatebot.com/templates/#other-available-fields
"./.github/scripts/renovate_bump.sh {{{packageFileDir}}} {{{updateType}}} {{{depName}}} {{{newVersion}}}",
],
},
},
Expand All @@ -65,6 +66,12 @@ module.exports = {
groupName: "updates-patch-minor",
labels: ["patch"],
},
{
matchDatasources: ["docker"],
groupName: "enterprise",
labels: ["enterprise"],
matchFileNames: ["ix-dev/enterprise/**"],
},
// Custom versioning matching
customVersioning(
// There are tags with date format (24.08.0), but newer versions are semver
Expand Down
6 changes: 5 additions & 1 deletion .github/scripts/renovate_bump.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

app_path=$1
update_type=$2
dep_name=$3
dep_version=$4
log_path="./renovate.log"

if [[ -z "$app_path" ]]; then
Expand All @@ -23,6 +25,8 @@ docker run --quiet --rm \
-v ./:/workspace \
ghcr.io/truenas/apps_validation:latest app_bump_version \
--path /workspace/"$app_path" \
--bump "$update_type"
--bump "$update_type" \
--dep-name "$dep_name" \
--dep-version "$dep_version"

echo "$app_path" >>"$log_path"

0 comments on commit d4a2458

Please sign in to comment.