From d1c0f781f1f8d076e0fed48f4798cfb8e4b1de0c Mon Sep 17 00:00:00 2001 From: Patrick Schratz Date: Sat, 13 Jul 2024 22:43:13 +0200 Subject: [PATCH] Update plugin-git and add renovate trigger (#3901) Co-authored-by: Robert Kaussow --- .github/renovate.json | 10 ++++++++++ shared/constant/constant.go | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) 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{