feat(cluster): use the native flux renovate integration
Signed-off-by: Devin Buhl <devin@buhl.casa>
This commit is contained in:
9 files changed
+16
-51
No files matched your search
+16
-8
@@ -5,24 +5,32 @@
|
||||
"dependencyDashboardTitle": "Renovate Dashboard",
|
||||
"suppressNotifications": ["prIgnoreNotification"],
|
||||
"rebaseWhen": "conflicted",
|
||||
"flux": {
|
||||
"fileMatch": [
|
||||
"cluster/.+\\.ya?ml$"
|
||||
],
|
||||
"ignorePaths": [
|
||||
"cluster/base/"
|
||||
]
|
||||
},
|
||||
"helm-values": {
|
||||
"fileMatch": [
|
||||
"cluster/.+/helm-release\\.yaml$"
|
||||
"cluster/.+/helm-release\\.ya?ml$"
|
||||
]
|
||||
},
|
||||
"kubernetes": {
|
||||
"fileMatch": [
|
||||
"cluster/.+\\.yaml$"
|
||||
"cluster/.+\\.ya?ml$"
|
||||
],
|
||||
"ignorePaths": [
|
||||
"cluster/base/"
|
||||
],
|
||||
]
|
||||
},
|
||||
"regexManagers": [
|
||||
// regexManager to read and process HelmRelease files
|
||||
{
|
||||
"fileMatch": [
|
||||
"cluster/.+\\.yaml$"
|
||||
"cluster/.+\\.ya?ml$"
|
||||
],
|
||||
"matchStrings": [
|
||||
// helm releases
|
||||
@@ -33,7 +41,7 @@
|
||||
// regexManager to read and process cert-manager CRD's
|
||||
{
|
||||
"fileMatch": [
|
||||
"cluster/crds/cert-manager/.+\\.yaml$"
|
||||
"cluster/crds/cert-manager/.+\\.ya?ml$"
|
||||
],
|
||||
"matchStrings": [
|
||||
"registryUrl=(?<registryUrl>.*?) chart=(?<depName>.*?)\n.*\\/(?<currentValue>.*?)\\/"
|
||||
@@ -43,13 +51,13 @@
|
||||
// regexManager to read and process Traefik CRD's
|
||||
{
|
||||
"fileMatch": [
|
||||
"cluster/crds/traefik/.+\\.yaml$"
|
||||
"cluster/crds/traefik/.+\\.ya?ml$"
|
||||
],
|
||||
"matchStrings": [
|
||||
"registryUrl=(?<registryUrl>.*?) chart=(?<depName>.*?)\n *tag: v(?<currentValue>.*)\n"
|
||||
],
|
||||
"datasourceTemplate": "helm"
|
||||
},
|
||||
}
|
||||
],
|
||||
"packageRules": [
|
||||
// setup datasources
|
||||
@@ -64,7 +72,7 @@
|
||||
"enabled": true,
|
||||
"commitMessageTopic": "container image {{depName}}",
|
||||
"commitMessageExtra": "to {{#if isSingleVersion}}v{{{newVersion}}}{{else}}{{{newValue}}}{{/if}}",
|
||||
"matchUpdateTypes": ["major", "minor", "patch"],
|
||||
"matchUpdateTypes": ["major", "minor", "patch"]
|
||||
},
|
||||
// add labels according to package and update types
|
||||
{
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
---
|
||||
name: Schedule - Renovate Helm Releases
|
||||
|
||||
on: # yamllint disable-line rule:truthy
|
||||
workflow_dispatch:
|
||||
schedule:
|
||||
- cron: "0 */12 * * *"
|
||||
|
||||
jobs:
|
||||
renovate-helm-releases:
|
||||
runs-on: ubuntu-20.04
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
fetch-depth: 1
|
||||
|
||||
- name: Renovate Helm Releases
|
||||
uses: k8s-at-home/renovate-helm-releases@v1
|
||||
with:
|
||||
cluster-path: "./cluster"
|
||||
|
||||
- name: Create pull request for renovatebot helm-release annotations
|
||||
uses: peter-evans/create-pull-request@v3
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
branch: renovate-annotations
|
||||
delete-branch: true
|
||||
title: "chore(deps): update renovate annotations"
|
||||
signoff: false
|
||||
committer: GitHub <noreply@github.com>
|
||||
author: ${{ github.actor }} <${{ github.actor }}@users.noreply.github.com>
|
||||
commit-message: "chore(deps): update renovate annotations"
|
||||
body: |
|
||||
Update HelmReleases inorder for Renovate to pick up new versions of Helm charts
|
||||
labels: renovate/annotations
|
||||
Reference in new issue
Block a user