Skip to content

Commit ac008f3

Browse files
committed
Onboard Renovate shared preset
Signed-off-by: Erik Godding Boye <[email protected]>
1 parent c1d356c commit ac008f3

File tree

7 files changed

+23
-328
lines changed

7 files changed

+23
-328
lines changed

.github/renovate.json5

Lines changed: 3 additions & 154 deletions
Original file line numberDiff line numberDiff line change
@@ -1,165 +1,14 @@
1-
// THIS FILE IS AUTOMATICALLY GENERATED. DO NOT EDIT.
2-
// Edit https://github.com/cert-manager/makefile-modules/blob/main/modules/repository-base/base/.github/renovate.json5 instead.
3-
41
{
52
$schema: 'https://docs.renovatebot.com/renovate-schema.json',
6-
enabled: true,
7-
gitAuthor: 'Renovate Bot <[email protected]>',
8-
gitIgnoredAuthors: [
9-
'157150467+octo-sts[bot]@users.noreply.github.com',
10-
],
11-
enabledManagers: [
12-
'github-actions',
13-
'gomod',
14-
],
153
extends: [
16-
'config:best-practices',
17-
':gitSignOff',
18-
':semanticCommits',
19-
':disableVulnerabilityAlerts',
20-
':rebaseStalePrs',
21-
':prConcurrentLimit10', // Set a limit to avoid too many PRs, at least on the first run
22-
':prHourlyLimitNone',
4+
'github>cert-manager/renovate-config:default.json5',
235
],
24-
timezone: 'Europe/London',
25-
labels: [
26-
'dependencies',
27-
'kind/cleanup',
28-
'ok-to-test',
29-
'release-note-none',
30-
],
31-
// packageRules uses globs for matchPackageNames. Some packages have a separate major version i.e. /v on them which is when we would need package**/**.
326
packageRules: [
337
{
34-
groupName: 'Misc GitHub actions',
35-
matchManagers: [
36-
'github-actions',
37-
],
38-
},
39-
{
40-
matchManagers: [
41-
'gomod',
42-
],
43-
postUpgradeTasks: {
44-
commands: [
45-
'make vendor-go generate',
46-
],
47-
executionMode: 'branch',
48-
}
49-
},
50-
{
51-
groupName: 'Misc Go deps',
52-
matchManagers: [
53-
'gomod',
54-
],
55-
matchUpdateTypes: [
56-
'minor',
57-
'patch',
58-
],
59-
},
60-
{
61-
groupName: 'Testing Go deps',
62-
matchManagers: [
63-
'gomod',
64-
],
65-
matchPackageNames: [
66-
'github.com/onsi/ginkgo/**',
67-
'github.com/onsi/gomega',
68-
'github.com/stretchr/testify',
69-
],
70-
matchUpdateTypes: [
71-
'minor',
72-
'patch',
73-
]
74-
},
75-
{
76-
groupName: 'Cloud Go deps',
77-
matchManagers: [
78-
'gomod',
79-
],
80-
matchPackageNames: [
81-
'github.com/akamai/**',
82-
'github.com/aws/**',
83-
'github.com/Azure/**',
84-
'github.com/AzureAD/**',
85-
'github.com/cloudflare/**',
86-
'github.com/digitalocean/**',
87-
'google.golang.org/api',
88-
],
89-
matchUpdateTypes: [
90-
'minor',
91-
'patch',
92-
]
93-
},
94-
{
95-
groupName: 'Kubernetes Go deps',
8+
groupName: 'Misc NPM packages',
969
matchManagers: [
97-
'gomod',
98-
],
99-
matchPackageNames: [
100-
'sigs.k8s.io/**',
101-
'k8s.io/**',
10+
'npm',
10211
],
103-
matchUpdateTypes: [
104-
'minor',
105-
'patch',
106-
]
10712
},
108-
{
109-
groupName: 'Kubernetes Go patches',
110-
matchManagers: [
111-
'gomod',
112-
],
113-
matchPackageNames: [
114-
'k8s.io/**',
115-
],
116-
matchUpdateTypes: [
117-
'patch',
118-
],
119-
addLabels: [
120-
'skip-review', // Adding label to allow PRs to automerge
121-
]
122-
},
123-
{
124-
groupName: 'golang.org/x deps',
125-
matchManagers: [
126-
'gomod',
127-
],
128-
matchPackageNames: [
129-
'golang.org/x/**',
130-
],
131-
addLabels: [
132-
'skip-review', // Adding label to allow PRs to automerge
133-
],
134-
},
135-
{
136-
matchManagers: [
137-
'gomod',
138-
],
139-
matchUpdateTypes: [
140-
'major',
141-
'digest',
142-
],
143-
dependencyDashboardApproval: true
144-
},
145-
{
146-
description: 'Disable (internal) cert-manager pseudo-version updates',
147-
matchManagers: [
148-
'gomod',
149-
],
150-
matchPackageNames: [
151-
'github.com/cert-manager/**',
152-
],
153-
matchCurrentValue: 'v0.0.0*',
154-
enabled: false,
155-
},
156-
],
157-
ignorePaths: [
158-
'**/vendor/**',
159-
// Exclude files that are mastered from makefile-modules and shouldn't be upgraded in projects using makefile-modules.
160-
'make/_shared/**',
161-
'.github/workflows/govulncheck.yaml',
162-
'.github/workflows/make-self-upgrade.yaml',
163-
'.github/workflows/renovate.yaml',
16413
],
16514
}

.github/workflows/renovate.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
exit 1
2828
2929
- name: Octo STS Token Exchange
30-
uses: octo-sts/action@e480437973a6f6ac2e9caa40ecabedc870d76395 # main
30+
uses: octo-sts/action@e480437973a6f6ac2e9caa40ecabedc870d76395 # v1.0.1
3131
id: octo-sts
3232
with:
3333
scope: 'cert-manager/website'

klone.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,30 +10,30 @@ targets:
1010
- folder_name: boilerplate
1111
repo_url: https://github.com/cert-manager/makefile-modules.git
1212
repo_ref: main
13-
repo_hash: 19c94b4b2606b35e5eee494d2baad09b0725334e
13+
repo_hash: a6ac1de6fe76226124ca2e108bff907b91fbfc1e
1414
repo_path: modules/boilerplate
1515
- folder_name: generate-verify
1616
repo_url: https://github.com/cert-manager/makefile-modules.git
1717
repo_ref: main
18-
repo_hash: 19c94b4b2606b35e5eee494d2baad09b0725334e
18+
repo_hash: a6ac1de6fe76226124ca2e108bff907b91fbfc1e
1919
repo_path: modules/generate-verify
2020
- folder_name: help
2121
repo_url: https://github.com/cert-manager/makefile-modules.git
2222
repo_ref: main
23-
repo_hash: 19c94b4b2606b35e5eee494d2baad09b0725334e
23+
repo_hash: a6ac1de6fe76226124ca2e108bff907b91fbfc1e
2424
repo_path: modules/help
2525
- folder_name: klone
2626
repo_url: https://github.com/cert-manager/makefile-modules.git
2727
repo_ref: main
28-
repo_hash: 19c94b4b2606b35e5eee494d2baad09b0725334e
28+
repo_hash: a6ac1de6fe76226124ca2e108bff907b91fbfc1e
2929
repo_path: modules/klone
3030
- folder_name: repository-base
3131
repo_url: https://github.com/cert-manager/makefile-modules.git
3232
repo_ref: main
33-
repo_hash: 19c94b4b2606b35e5eee494d2baad09b0725334e
33+
repo_hash: a6ac1de6fe76226124ca2e108bff907b91fbfc1e
3434
repo_path: modules/repository-base
3535
- folder_name: tools
3636
repo_url: https://github.com/cert-manager/makefile-modules.git
3737
repo_ref: main
38-
repo_hash: 19c94b4b2606b35e5eee494d2baad09b0725334e
38+
repo_hash: a6ac1de6fe76226124ca2e108bff907b91fbfc1e
3939
repo_path: modules/tools

make/_shared/repository-base/01_mod.mk

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ ifndef repo_name
1616
$(error repo_name is not set)
1717
endif
1818

19-
repository_base_dir := $(dir $(lastword $(MAKEFILE_LIST)))/base/
19+
_repository_base_module_dir := $(dir $(lastword $(MAKEFILE_LIST)))
20+
repository_base_dir := $(_repository_base_module_dir)base/
2021

2122
.PHONY: generate-base
2223
## Generate base files in the repository
@@ -27,5 +28,9 @@ generate-base:
2728
find . -type f | while read file; do \
2829
sed "s|{{REPLACE:GH-REPOSITORY}}|$(repo_name:github.com/%=%)|g" "$$file" > "$(CURDIR)/$$file"; \
2930
done
31+
if [ ! -e ./.github/renovate.json5 ]; then \
32+
mkdir -p ./.github; \
33+
cp $(_repository_base_module_dir)/renovate-bootstrap-config.json5 ./.github/renovate.json5; \
34+
fi
3035

3136
shared_generate_targets += generate-base

0 commit comments

Comments
 (0)