Skip to content

Commit

Permalink
🔧 Configure Renovate to update app version (#37)
Browse files Browse the repository at this point in the history
Add a regexManager that looks for Renovate markup in the chart file and
specify these markup strings to source image versions from the official
image registry of the application.
  • Loading branch information
nomaster authored Feb 1, 2024
1 parent 4de86e9 commit ee12dbf
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/enoki-mastodon/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ type: application

version: 0.3.8

# renovate: image=ghcr.io/mastodon/mastodon
appVersion: 4.2.1

dependencies:
Expand Down
1 change: 1 addition & 0 deletions charts/mastodon/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ version: 4.0.9
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
# follow Semantic Versioning. They should reflect the version the application is using.
# renovate: image=ghcr.io/mastodon/mastodon
appVersion: v4.2.1

dependencies:
Expand Down
11 changes: 11 additions & 0 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,16 @@
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:base"
],
"regexManagers": [
{
"fileMatch": [
"(^|/)Chart\\.yaml$"
],
"matchStrings": [
"#\\s?renovate: image=(?<depName>.*?)\\s?appVersion:\\s?\\\"?(?<currentValue>[\\w+\\.\\-]*)"
],
"datasourceTemplate": "docker"
}
]
}

0 comments on commit ee12dbf

Please sign in to comment.