diff --git a/.github/renovate.json b/.github/renovate.json index d3ea2d642..758ff2b22 100644 --- a/.github/renovate.json +++ b/.github/renovate.json @@ -1,6 +1,16 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": ["github>woodpecker-ci/renovate-config"], + "customManagers": [ + { + "customType": "regex", + "fileMatch": ["shared/constant/constant.go"], + "matchStrings": [ + "//\\s*renovate:\\s*datasource=(?.*?) depName=(?.*?)( versioning=(?.*?))?\\s+DefaultCloneImage = \"docker.io/woodpeckerci/plugin-git:(?.*)\"" + ], + "versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}" + } + ], "packageRules": [ { "matchCurrentVersion": "<1.0.0", diff --git a/shared/constant/constant.go b/shared/constant/constant.go index ca315e987..0034b49fe 100644 --- a/shared/constant/constant.go +++ b/shared/constant/constant.go @@ -33,7 +33,8 @@ var DefaultConfigOrder = [...]string{ const ( // DefaultCloneImage can be changed by 'WOODPECKER_DEFAULT_CLONE_IMAGE' at runtime. - DefaultCloneImage = "docker.io/woodpeckerci/plugin-git:2.4.0" + // renovate: datasource=docker depName=woodpeckerci/plugin-git + DefaultCloneImage = "docker.io/woodpeckerci/plugin-git:2.5.1" ) var TrustedCloneImages = []string{