Setup renovate custom manager

This commit is contained in:
Oliver Traber 2024-04-06 00:50:55 +02:00
parent 3d7f0454de
commit ed2b67f29d
Signed by: Bluemedia
GPG key ID: C0674B105057136C
2 changed files with 13 additions and 2 deletions

View file

@ -12,7 +12,8 @@ steps:
clone:
image: alpine/git
commands:
- git clone --depth 1 --branch v1.3.4 https://github.com/turt2live/matrix-media-repo.git .
# renovate: datasource=github-releases depName=turt2live/matrix-media-repo versioning=semver-coerced
- git clone --branch v1.3.4 --depth 1 https://github.com/turt2live/matrix-media-repo.git .
docker:
image: woodpeckerci/plugin-docker-buildx
secrets: [docker_username, docker_password]

View file

@ -1,3 +1,13 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"customManagers": [
{
"customType": "regex",
"fileMatch": ["^\\.woodpecker/.*\\.ya?ml$"],
"matchStrings": [
"datasource=(?<datasource>.*?)( registryUrl=(?<registryUrl>[^ ]*))? depName=(?<depName>[^ ]*)( versioning=(?<versioning>.*?))?\\s*- git clone --branch (?<currentValue>[^ ]*)\\s.*"
],
"versioningTemplate": "{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}"
}
]
}