diff --git a/default.json b/default.json index c250332..56af933 100644 --- a/default.json +++ b/default.json @@ -117,6 +117,20 @@ " +(?:name|'name'|\"name\") *: +\"(?gitlab\\.com/(?[^\\n]+))@(?[^'\" \\n]+)\"" ] }, + { + "datasourceTemplate": "gitea-releases", + "fileMatch": [ + "\\.?aqua\\.ya?ml" + ], + "matchStrings": [ + " +(?:version|'version'|\"version\") *: +(?[^'\" \\n]+) +# renovate: depName=(?gitea\\.com/(?[^\\n]+))", + " +(?:version|'version'|\"version\") *: +'(?[^'\" \\n]+)' +# renovate: depName=(?gitea\\.com/(?[^\\n]+))", + " +(?:version|'version'|\"version\") *: +\"(?[^'\" \\n]+)\" +# renovate: depName=(?gitea\\.com/(?[^\\n]+))", + " +(?:name|'name'|\"name\") *: +(?gitea\\.com/(?[^\\n]+))@(?[^'\" \\n]+)", + " +(?:name|'name'|\"name\") *: +'(?gitea\\.com/(?[^\\n]+))@(?[^'\" \\n]+)'", + " +(?:name|'name'|\"name\") *: +\"(?gitea\\.com/(?[^\\n]+))@(?[^'\" \\n]+)\"" + ] + }, { "customType": "regex", "datasourceTemplate": "github-releases", diff --git a/file.json b/file.json index bbea200..149d3ca 100644 --- a/file.json +++ b/file.json @@ -70,6 +70,20 @@ " +(?:name|'name'|\"name\") *: +\"(?gitlab\\.com/(?[^\\n]+))@(?[^'\" \\n]+)\"" ] }, + { + "datasourceTemplate": "gitea-releases", + "fileMatch": [ + "{{arg0}}" + ], + "matchStrings": [ + " +(?:version|'version'|\"version\") *: +(?[^'\" \\n]+) +# renovate: depName=(?gitea\\.com/(?[^\\n]+))", + " +(?:version|'version'|\"version\") *: +'(?[^'\" \\n]+)' +# renovate: depName=(?gitea\\.com/(?[^\\n]+))", + " +(?:version|'version'|\"version\") *: +\"(?[^'\" \\n]+)\" +# renovate: depName=(?gitea\\.com/(?[^\\n]+))", + " +(?:name|'name'|\"name\") *: +(?gitea\\.com/(?[^\\n]+))@(?[^'\" \\n]+)", + " +(?:name|'name'|\"name\") *: +'(?gitea\\.com/(?[^\\n]+))@(?[^'\" \\n]+)'", + " +(?:name|'name'|\"name\") *: +\"(?gitea\\.com/(?[^\\n]+))@(?[^'\" \\n]+)\"" + ] + }, { "customType": "regex", "datasourceTemplate": "github-releases", diff --git a/jsonnet/utils.libsonnet b/jsonnet/utils.libsonnet index 22ba68f..95953b5 100644 --- a/jsonnet/utils.libsonnet +++ b/jsonnet/utils.libsonnet @@ -55,6 +55,7 @@ goModuleDepName: '(?golang\\.org/[^\\n]+)', crateDepName: '(?crates\\.io/(?[^\\n]+))', gitlabDepName: '(?gitlab\\.com/(?[^\\n]+))', + giteaDepName: '(?gitea\\.com/(?[^\\n]+))', registryRegexManager: { customType: "regex", @@ -123,6 +124,19 @@ ], datasourceTemplate: 'gitlab-releases', }, + giteaPkg: { + fileMatch: $.aquaYAMLFileMatch, + matchStrings: [ + ' +%s *: +%s +# renovate: depName=%s' % [$.wrapQuote('version'), $.currentValue, $.giteaDepName], + " +%s *: +'%s' +# renovate: depName=%s" % [$.wrapQuote('version'), $.currentValue, $.giteaDepName], + ' +%s *: +"%s" +# renovate: depName=%s' % [$.wrapQuote('version'), $.currentValue, $.giteaDepName], + + ' +%s *: +%s@%s' % [$.wrapQuote('name'), $.giteaDepName, $.currentValue], + " +%s *: +'%s@%s'" % [$.wrapQuote('name'), $.giteaDepName, $.currentValue], + ' +%s *: +"%s@%s"' % [$.wrapQuote('name'), $.giteaDepName, $.currentValue], + ], + datasourceTemplate: 'gitea-releases', + }, kubectlConvert: { datasourceTemplate: 'github-releases', depNameTemplate: 'kubernetes/kubectl-convert', @@ -171,6 +185,7 @@ $.goPkg, $.cratePkg, $.gitlabPkg, + $.giteaPkg, $.prefixRegexManager('oven-sh/bun', 'bun-'), $.golangGo, $.gopls,