diff --git a/renovate.json5 b/renovate.json5 index 51b89286cc..af7ff49aed 100644 --- a/renovate.json5 +++ b/renovate.json5 @@ -2,4 +2,16 @@ "extends": [ "github>giantswarm/renovate-presets:default.json5" ], + customManagers: [ + // Detect versions in shell scripts + { + customType: 'regex', + fileMatch: ['.*\\.sh'], + matchStrings: [ + // for the version on the right part, ignoring the left + '# renovate: datasource=(?.*?) depName=(?.*?)( versioning=(?.*?))?\\s[A-Z_]+=(?\\S+)', + ], + versioningTemplate: '{{#if versioning}}{{{versioning}}}{{else}}semver{{/if}}', + }, + ], } diff --git a/scripts/update-crd-reference/main.sh b/scripts/update-crd-reference/main.sh index 07cd9a75f6..b39843fa88 100755 --- a/scripts/update-crd-reference/main.sh +++ b/scripts/update-crd-reference/main.sh @@ -2,7 +2,9 @@ set -e +# renovate: datasource=docker depName=gsoci.azurecr.io/giantswarm/crd-docs-generator versioning=loose CRD_DOCS_GENERATOR_VERSION=0.11.1 + DESTINATION=src/content/reference/platform-api/crd # Clear output folder diff --git a/scripts/update-helm-chart-reference/main.sh b/scripts/update-helm-chart-reference/main.sh index f01dc8d43c..663a3fade2 100755 --- a/scripts/update-helm-chart-reference/main.sh +++ b/scripts/update-helm-chart-reference/main.sh @@ -1,6 +1,8 @@ #!/bin/bash +# renovate: datasource=docker depName=gsoci.azurecr.io/giantswarm/helm-chart-docs-generator versioning=loose HELM_CHART_DOCS_GENERATOR_VERSION=0.2.0 + DESTINATION=src/content/vintage/use-the-api/management-api/cluster-apps # Clear output folder