Skip to content

Commit

Permalink
ci: configure renovate
Browse files Browse the repository at this point in the history
Improve default renovate configuration

Signed-off-by: Francesco Canovai <francesco.canovai@enterprisedb.com>
  • Loading branch information
fcanovai committed Jul 2, 2024
1 parent ff68ad0 commit 62c9981
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ tasks:
desc: Run go test
env:
# TODO: configure renovate
GOLANG_IMAGE_VERSION: golang:1.22.4
# renovate: datasource=docker depName=golang versioning=semver
GOLANG_IMAGE: golang:1.22.3
# renovate: datasource=git-refs depName=gotest lookupName=https://github.com/Excoriate/daggerverse currentValue=main
DAGGER_GOTEST_SHA: f09d41cb90701db446048a9f20eb03495e50f727
cmds:
Expand Down
67 changes: 66 additions & 1 deletion renovate.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,71 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": [
"config:recommended"
"config:recommended",
":gitSignOff",
":semanticCommitType(chore)",
":labels(automated,no-issue)",
"customManagers:githubActionsVersions"
],
"postUpdateOptions": [
"gomodTidy"
],
"semanticCommits": "enabled",
"commitBodyTable": true,
"customManagers": [
{
"customType": "regex",
"fileMatch": [
"(^Taskfile\\.yml$)"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?(?: currentValue=(?<currentValue>[^\\s]+?))?\\s+[A-Za-z0-9_]+?_SHA\\s*:\\s*[\"']?(?<currentDigest>[a-f0-9]+?)[\"']?\\s"
]
},
{
"customType": "regex",
"fileMatch": [
"(^Taskfile\\.yml$)"
],
"matchStrings": [
"# renovate: datasource=(?<datasource>[a-z-.]+?) depName=(?<depName>[^\\s]+?)(?: (?:lookupName|packageName)=(?<packageName>[^\\s]+?))?(?: versioning=(?<versioning>[^\\s]+?))?(?: extractVersion=(?<extractVersion>[^\\s]+?))?\\s+[A-Za-z0-9_]+?_IMAGE\\s*:\\s*[\"']?(?<currentValue>[^\\s]+?)[\"']?\\s"
]
}
],
"packageRules": [
{
"matchDatasources": [
"go"
],
"matchPackagePatterns": [
"*"
],
"matchUpdateTypes": [
"minor",
"patch",
"digest"
],
"groupName": "all non-major go dependencies"
},
{
"matchDatasources": [
"git-refs"
],
"matchPackageNames": [
"https://github.com/cloudnative-pg/daggerverse"
],
"matchUpdateTypes": [
"digest"
],
"groupName": "all cloudnative-pg daggerverse dependencies"
},
{
"matchUpdateTypes": [
"minor",
"patch"
],
"matchCurrentVersion": "!/^0/",
"automerge": true
}
]
}

0 comments on commit 62c9981

Please sign in to comment.