Skip to content

Commit c917549

Browse files
chore(ci): use renovate to keep deps up to date (#76)
* chore(ci): use renovate to keep deps up to date Update renovate.json Update requirements.txt * Update renovate.json * Update requirements.txt --------- Co-authored-by: Jackson Chen <53205189+PeaWarrior@users.noreply.github.com>
1 parent ef01a3a commit c917549

File tree

3 files changed

+40
-6
lines changed

3 files changed

+40
-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.6.1
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: 37 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,48 @@
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+
],
514
"packageRules": [
615
{
7-
"matchUpdateTypes": ["major", "minor", "patch"],
8-
"addLabels": ["{{ updateType }}"]
16+
"description": "Automerge minor and patch updates for pip deps",
17+
"matchManagers": [
18+
"dockerfile"
19+
],
20+
"matchUpdateTypes": [
21+
"patch"
22+
],
23+
"addLabels": [
24+
"{{ updateType }}"
25+
],
26+
"automerge": true,
27+
"automergeType": "pr"
28+
},
29+
{
30+
"description": "Separate major updates - require manual review",
31+
"matchUpdateTypes": [
32+
"major"
33+
],
34+
"automerge": false,
35+
"labels": [
36+
"major-update",
37+
"dependencies"
38+
]
939
}
1040
],
1141
"osvVulnerabilityAlerts": true,
1242
"vulnerabilityAlerts": {
13-
"addLabels": ["security"],
43+
"addLabels": [
44+
"security"
45+
],
1446
"enabled": true
1547
}
1648
}

requirements.txt

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

0 commit comments

Comments
 (0)