From b222e794499497bfd9a1f8d9725f4e479b63561e Mon Sep 17 00:00:00 2001 From: secustor Date: Fri, 17 Jan 2025 23:56:53 +0100 Subject: [PATCH] chore: add renovate config --- .github/workflows/release.yaml | 1 + charts/immich/Chart.yaml | 1 + renovate.json5 | 19 +++++++++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 renovate.json5 diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index e15d3bf..10d2d68 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -27,6 +27,7 @@ jobs: - name: Set up Helm uses: azure/setup-helm@v4.2.0 with: + # renovate: datasource=github-releases depName=helm/helm version: v3.12.0 - name: Run chart-releaser diff --git a/charts/immich/Chart.yaml b/charts/immich/Chart.yaml index d56e113..17a66cf 100644 --- a/charts/immich/Chart.yaml +++ b/charts/immich/Chart.yaml @@ -4,4 +4,5 @@ description: A Immich Helm chart targeted at advanced users type: application version: 0.2.0 +# renovate: image=ghcr.io/immich-app/immich-server appVersion: "v1.124.2" diff --git a/renovate.json5 b/renovate.json5 new file mode 100644 index 0000000..213368d --- /dev/null +++ b/renovate.json5 @@ -0,0 +1,19 @@ +{ + $schema: 'https://docs.renovatebot.com/renovate-schema.json', + extends: [ + 'config:recommended', + 'customManagers:helmChartYamlAppVersions', + 'helpers:pinGitHubActionDigests', + ], + customManagers: [ + { + customType: "regex", + fileMatch: ['\\.github/workflows/release.ya?ml'], + matchStrings: [ + // this is mostly a copy from https://docs.renovatebot.com/presets-customManagers/#custommanagersgithubactionsversions + // and only changes the expected version prefix + "# renovate: datasource=(?[a-z-.]+?) depName=(?[^\\s]+?)(?: (?:lookupName|packageName)=(?[^\\s]+?))?(?: versioning=(?[^\\s]+?))?(?: extractVersion=(?[^\\s]+?))?\\s+[A-Za-z0-9_]+?version\\s*:\\s*[\"']?(?.+?)[\"']?\\s" + ] + } + ] +} \ No newline at end of file