Renovate only tracked the engine version in `ci/dagger.json`. This PR adds regex `customManagers` so Renovate also updates: - `DAGGER_VERSION` in `.forgejo/Dockerfile` - the nix flake reference (`github:dagger/nix/vX.Y.Z#dagger`) in `DAGGER.md` All three now point to the same `dagger/dagger` GitHub releases datasource so they stay in sync via a single grouped PR. Also bumps the stale `DAGGER.md` nix reference from `v0.11.4` to `v0.20.8` to match the current engine version. Closes #358 Co-authored-by: Thomas SharedInbox <sharedinbox@thomas-guettler.de> Reviewed-on: https://codeberg.org/guettli/sharedinbox/pulls/365
35 lines
1005 B
JSON
35 lines
1005 B
JSON
{
|
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
|
"extends": [
|
|
"config:recommended"
|
|
],
|
|
"labels": ["dependencies"],
|
|
"github-actions": {
|
|
"enabled": false
|
|
},
|
|
"packageRules": [
|
|
{
|
|
"matchUpdateTypes": ["minor", "patch", "pin", "digest", "lockFileMaintenance"],
|
|
"addLabels": ["automerge"]
|
|
}
|
|
],
|
|
"customManagers": [
|
|
{
|
|
"customType": "regex",
|
|
"fileMatch": ["^\\.forgejo/Dockerfile$"],
|
|
"matchStrings": ["DAGGER_VERSION=(?<currentValue>[0-9]+\\.[0-9]+\\.[0-9]+)"],
|
|
"depNameTemplate": "dagger/dagger",
|
|
"datasourceTemplate": "github-releases",
|
|
"extractVersionTemplate": "^v(?<version>.*)$"
|
|
},
|
|
{
|
|
"customType": "regex",
|
|
"fileMatch": ["^DAGGER\\.md$"],
|
|
"matchStrings": ["github:dagger/nix/v(?<currentValue>[0-9]+\\.[0-9]+\\.[0-9]+)#dagger"],
|
|
"depNameTemplate": "dagger/dagger",
|
|
"datasourceTemplate": "github-releases",
|
|
"extractVersionTemplate": "^v(?<version>.*)$"
|
|
}
|
|
]
|
|
}
|