Skip to content

Commit

Permalink
fix(github): Support redis/argocd-extension-installer to Renovate
Browse files Browse the repository at this point in the history
Signed-off-by: yu-croco <[email protected]>
  • Loading branch information
yu-croco committed Jan 5, 2025
1 parent 89f40fd commit 3779762
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,13 @@
"commands": ["./scripts/renovate-bump-version.sh {{depName}}"]
}
},
{
"matchPackagePatterns": ["argoprojlabs/argocd-extension-installer"],
"commitMessagePrefix": "chore({{{replace 'argoprojlabs/' '' depName}}}):",
"postUpgradeTasks": {
"commands": ["./scripts/renovate-bump-version.sh {{depName}}"]
}
},
{
"matchPackagePatterns": ["redis-ha"],
"enabled": false
Expand Down
9 changes: 8 additions & 1 deletion scripts/renovate-bump-version.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ chartName=$(echo "$depName" | sed -e "s+^argoproj/++" -e "s+^argoproj-labs/++")
echo "Changed chart name is: $chartName"
echo "----------------------------------------"

parentDir="charts/${chartName}"
case "${chartName}" in
*"redis"*|*"argocd-extension-installer")
parentDir="charts/argo-cd"
;;
*)
parentDir="charts/${chartName}"
;;
esac

# Bump the chart version by one patch version
version=$(grep '^version:' "${parentDir}/Chart.yaml" | awk '{print $2}')
Expand Down

0 comments on commit 3779762

Please sign in to comment.