Skip to content

Commit cfd476d

Browse files
authored
feat(renovate): Add renovate for dependencies update (#1140)
1 parent d976223 commit cfd476d

File tree

3 files changed

+100
-11
lines changed

3 files changed

+100
-11
lines changed

.github/dependabot.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.github/renovate.json5

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
{
2+
"extends": [
3+
"config:base",
4+
],
5+
"labels": [
6+
"dependencies"
7+
],
8+
"automerge": false,
9+
"enabledManagers": [
10+
"cargo",
11+
"regex",
12+
"gomod"
13+
],
14+
"regexManagers": [
15+
{
16+
// Parse bundle image version from `base_image` ARG in Dockerfile.
17+
"fileMatch": [
18+
"system_identity_registration/Dockerfile$"
19+
],
20+
"datasourceTemplate": "docker",
21+
"matchStrings": [
22+
"base_image=(?<depName>.+):(?<currentValue>.+)"
23+
]
24+
},
25+
{
26+
// Extract version for embedded binary for infrastructure-agent.
27+
"fileMatch": [
28+
"^.goreleaser.yml$"
29+
],
30+
"depNameTemplate": "newrelic/infrastructure-agent",
31+
"datasourceTemplate": "github-releases",
32+
// Version info is fetched from GitHub.
33+
"matchStrings": [
34+
// Capture en var name and version from goreleaser.yml.
35+
" *- NEWRELIC_INFRA_AGENT_VERSION=(?<currentValue>.+)"
36+
]
37+
},
38+
{
39+
// Extract version for embedded binary for nrdot-collector-releases.
40+
"fileMatch": [
41+
"^.goreleaser.yml$"
42+
],
43+
"depNameTemplate": "newrelic/nrdot-collector-releases",
44+
"datasourceTemplate": "github-releases",
45+
// Version info is fetched from GitHub.
46+
"matchStrings": [
47+
// Capture en var name and version from goreleaser.yml.
48+
" *- NR_OTEL_COLLECTOR_VERSION=(?<currentValue>.+)"
49+
]
50+
}
51+
],
52+
"rangeStrategy": "auto",
53+
// See <https://docs.renovatebot.com/configuration-options/#rangestrategy>
54+
"prConcurrentLimit": 0,
55+
"printConfig": true,
56+
"prHourlyLimit": 0,
57+
"packageRules": [
58+
{
59+
"managers": [
60+
"cargo"
61+
],
62+
"updateTypes": [
63+
"minor",
64+
"patch"
65+
],
66+
"groupName": "cargo minor and patch updates"
67+
},
68+
{
69+
"managers": [
70+
"cargo"
71+
],
72+
"updateTypes": [
73+
"major",
74+
],
75+
"groupName": "cargo major updates"
76+
},
77+
{
78+
"managers": [
79+
"gomod"
80+
],
81+
"updateTypes": [
82+
"minor",
83+
"patch"
84+
],
85+
"groupName": "go minor and patch updates"
86+
},
87+
{
88+
"managers": [
89+
"gomod"
90+
],
91+
"updateTypes": [
92+
"major",
93+
],
94+
"groupName": "go major updates"
95+
}
96+
]
97+
}
Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM alpine:3.21
1+
ARG base_image=alpine:3.21
2+
3+
FROM $base_image
24

35
RUN apk update
46
RUN apk add --no-cache kubectl curl jq openssl

0 commit comments

Comments
 (0)