Skip to content

Commit 3514ae3

Browse files
Configure Renovate (#75)
Bundle general package updates together by their package manager, but separate out major version bumps for easier individual review. Automate Ruby language updates across `.ruby-version`, `Gemfile`, and `Dockerfile`. Try the lock file regeneration/maintenance, not sure we'll stick with it. Starting on a monthly cadence. Don't think we need random package updates quicker than that. Will probably need some further tweaking, but seems like a good start. --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Tanner Doshier <git@doshitan.com>
1 parent 126bd64 commit 3514ae3

File tree

2 files changed

+50
-0
lines changed

2 files changed

+50
-0
lines changed

renovate.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3+
"extends": [
4+
"config:recommended",
5+
"customManagers:dockerfileVersions",
6+
"schedule:monthly",
7+
":maintainLockFilesMonthly"
8+
],
9+
"labels": ["dependencies"],
10+
"github-actions": {
11+
"fileMatch": ["^template/\\.github/(?:workflows|actions)/.+\\.ya?ml(?:.jinja)?$"]
12+
},
13+
"packageRules": [
14+
{
15+
"groupName": "{{manager}} non-major dependencies",
16+
"groupSlug": "{{manager}}-minor-patch",
17+
"matchPackagePatterns": [
18+
"*"
19+
],
20+
"matchUpdateTypes": [
21+
"minor",
22+
"patch"
23+
]
24+
},
25+
{
26+
"groupName": "Ruby language",
27+
"groupSlug": "ruby-lang",
28+
"matchManagers": [
29+
"bundler",
30+
"dockerfile",
31+
"regex",
32+
"ruby-version"
33+
],
34+
"matchDatasources": [
35+
"docker",
36+
"rubygems",
37+
"ruby-version"
38+
],
39+
"matchDepNames": [
40+
"ruby",
41+
"registry.docker.com/library/ruby"
42+
],
43+
"commitMessageTopic": "Ruby language"
44+
}
45+
],
46+
"vulnerabilityAlerts": {
47+
"labels": ["security"]
48+
}
49+
}

template/{{app_name}}/Dockerfile.jinja

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# syntax = docker/dockerfile:1
22

33
# Make sure RUBY_VERSION matches the Ruby version in .ruby-version and Gemfile
4+
# renovate: datasource=docker depName=registry.docker.com/library/ruby
45
ARG RUBY_VERSION=3.3.7
56

67

0 commit comments

Comments
 (0)