Skip to content

Commit 91add8f

Browse files
committed
renovate manage image versions
Signed-off-by: TheRealNoob <mike1118@live.com>
1 parent 2558278 commit 91add8f

2 files changed

Lines changed: 22 additions & 34 deletions

File tree

Makefile

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,14 @@
11
MAKEFILE_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
22

3+
# renovate: docker=helmunittest/helm-unittest
4+
HELM_UNITTEST_TAG := 3.19.0-1.0.3
5+
# renovate: docker=jnorwood/helm-docs
6+
HELM_DOCS_TAG := v1.14.2
7+
38
.PHONY: helm-unittest
49
helm-unittest:
5-
docker run --rm -v $(MAKEFILE_DIR):/apps helmunittest/helm-unittest:3.19.0-1.0.3 --strict --file 'tests/**/*.yaml' charts/*
10+
docker run --rm -v $(MAKEFILE_DIR):/apps helmunittest/helm-unittest:$(HELM_UNITTEST_TAG) --strict --file 'tests/**/*.yaml' charts/*
611

712
.PHONY: helm-docs
813
helm-docs:
9-
docker run --rm -v $(MAKEFILE_DIR):/helm-docs -u $(shell id -u) jnorwood/helm-docs:v1.14.2 --chart-search-root=charts
14+
docker run --rm -v $(MAKEFILE_DIR):/helm-docs -u $(shell id -u) jnorwood/helm-docs:$(HELM_DOCS_TAG) --chart-search-root=charts

renovate.json

Lines changed: 15 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
{
1616
"customType": "regex",
1717
"managerFilePatterns": [
18-
"/(^|/).+\\.(py|yaml)$/"
18+
"/(^|/).+\\.(py|yaml)$/",
19+
"/(^|/)Makefile$/"
1920
],
2021
"matchStrings": [
2122
"[\\t ]*(?:#|//) ?renovate: (?<datasource>git-refs)=(?<depName>\\S+)(?: branch=(?<currentValue>\\S+))?[\\t ]*\\r?\\n.+?[:=][\\t ]*[\"']?(?<currentDigest>[a-f0-9]+)[\"']?",
@@ -68,6 +69,19 @@
6869
"schedule": null,
6970
"labels": ["dependencies", "dependencies/auto-merge"]
7071
},
72+
{
73+
"enabled": true,
74+
"matchFileNames": [
75+
"Makefile"
76+
],
77+
"commitMessagePrefix": "[CI] ",
78+
"groupName": "Makefile dependency updates",
79+
"matchPackageNames": [
80+
"*"
81+
],
82+
"schedule": null,
83+
"labels": ["dependencies", "dependencies/auto-merge"]
84+
},
7185
{
7286
"enabled": true,
7387
"matchFileNames": [
@@ -106,37 +120,6 @@
106120
"* 14-17 * * 2,5"
107121
]
108122
},
109-
{
110-
"description": "Prometheus Operator minor updates should result in a major bump of the chart version.",
111-
"enabled": true,
112-
"matchFileNames": [
113-
"charts/prometheus-operator-crds/**"
114-
],
115-
"matchPackageNames": [
116-
"prometheus-operator/prometheus-operator"
117-
],
118-
"bumpVersions": [
119-
{
120-
"name": "Updating Chart version",
121-
"filePatterns": ["/^({{#each (distinct (lookupArray upgrades \"packageFileDir\"))}}{{{lookup (split . \"/\") 0}}}/{{{lookup (split . \"/\") 1}}}{{#unless @last}}|{{/unless}}{{/each}})/Chart\\.ya?ml$/"],
122-
"matchStrings": ["(?:^|\\n)version:\\s\"?(?<version>\\d+\\.\\d+\\.\\d+)\"?(?:$|\\n)"],
123-
"bumpType": "{{#if (or isPinDigest isPatch)}}patch{{else}}major{{/if}}"
124-
}
125-
]
126-
},
127-
{
128-
"description": "disable prometheus-operator major and minor updates for charts/kube-prometheus-stack",
129-
"enabled": false,
130-
"matchFileNames": [
131-
"charts/kube-prometheus-stack/**"
132-
],
133-
"matchPackageNames": [
134-
"prometheus-operator/prometheus-operator"
135-
],
136-
"matchUpdateTypes": [
137-
"major", "minor"
138-
]
139-
},
140123
{
141124
"matchPackageNames": ["actions/python-versions", "python"],
142125
"matchDepTypes": [

0 commit comments

Comments
 (0)