Skip to content

Commit 3b7b732

Browse files
committed
chore(ci): use renovate to keep deps up to date
Update renovate.json Update requirements.txt
1 parent c7f2ae3 commit 3b7b732

File tree

3 files changed

+43
-6
lines changed

3 files changed

+43
-6
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: 40 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,51 @@
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+
"patch"
25+
],
26+
"addLabels": [
27+
"{{ updateType }}"
28+
],
29+
"automerge": true,
30+
"automergeType": "pr"
31+
},
32+
{
33+
"description": "Separate major updates - require manual review",
34+
"matchUpdateTypes": [
35+
"major"
36+
],
37+
"automerge": false,
38+
"labels": [
39+
"major-update",
40+
"dependencies"
41+
]
942
}
1043
],
1144
"osvVulnerabilityAlerts": true,
1245
"vulnerabilityAlerts": {
13-
"addLabels": ["security"],
46+
"addLabels": [
47+
"security"
48+
],
1449
"enabled": true
1550
}
1651
}

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)