Skip to content

Commit 8e0f653

Browse files
committed
chore(ci): use renovate to keep deps up to date
1 parent c7f2ae3 commit 8e0f653

File tree

3 files changed

+45
-7
lines changed

3 files changed

+45
-7
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ RUN apk update && apk --no-cache add gcc musl-dev openjdk17-jdk curl graphviz tt
1919
# Download plantuml file, Validate checksum & Move plantuml file
2020
RUN curl -o plantuml.jar -L https://github.com/plantuml/plantuml/releases/download/v1.2024.6/plantuml-1.2024.6.jar && echo "3e944755cbed59e1ed9332691d92294bef7bbcda plantuml.jar" | sha1sum -c - && mv plantuml.jar /opt/plantuml.jar
2121

22-
RUN pip install --upgrade pip && pip install mkdocs-techdocs-core==1.5.4
22+
COPY requirements.txt .
23+
RUN pip install --upgrade pip && pip install -r requirements.txt
2324

2425
# Create script to call plantuml.jar from a location in path
2526
# When adding TechDocs to the Backstage Backend container, avoid this

renovate.json

Lines changed: 42 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,52 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["config:best-practices", ":gitSignOff"],
4-
"labels": ["dependencies"],
3+
"extends": [
4+
"config:best-practices",
5+
":gitSignOff"
6+
],
7+
"labels": [
8+
"dependencies"
9+
],
10+
"enabledManagers": [
11+
"dockerfile",
12+
"pip_requirements"
13+
],
14+
"dockerfile": {
15+
"enabled": true
16+
},
517
"packageRules": [
618
{
7-
"matchUpdateTypes": ["major", "minor", "patch"],
8-
"addLabels": ["{{ updateType }}"]
19+
"description": "Automerge minor and patch updates for pip deps",
20+
"matchManagers": [
21+
"dockerfile"
22+
],
23+
"matchUpdateTypes": [
24+
"minor",
25+
"patch"
26+
],
27+
"addLabels": [
28+
"{{ updateType }}"
29+
],
30+
"automerge": true,
31+
"automergeType": "pr"
32+
},
33+
{
34+
"description": "Separate major updates - require manual review",
35+
"matchUpdateTypes": [
36+
"major"
37+
],
38+
"automerge": false,
39+
"labels": [
40+
"major-update",
41+
"dependencies"
42+
]
943
}
1044
],
1145
"osvVulnerabilityAlerts": true,
1246
"vulnerabilityAlerts": {
13-
"addLabels": ["security"],
47+
"addLabels": [
48+
"security"
49+
],
1450
"enabled": true
1551
}
16-
}
52+
}

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mkdocs-techdocs-core==1.5.4

0 commit comments

Comments
 (0)