From ad97e7d71d12a58285aaef7539501f3fdf8b398d Mon Sep 17 00:00:00 2001 From: kvanzuijlen <8818390+kvanzuijlen@users.noreply.github.com> Date: Mon, 11 Mar 2024 20:26:35 +0100 Subject: [PATCH] chore: Introduced Renovate (WIP) Signed-off-by: kvanzuijlen <8818390+kvanzuijlen@users.noreply.github.com> --- .github/renovate.json | 23 +++++++++++++++++++++++ .github/workflows/lint-test.yaml | 1 + .github/workflows/linter.yml | 7 +++++-- .github/workflows/release.yaml | 1 + .github/workflows/update-helm-repo.yaml | 5 ++++- 5 files changed, 34 insertions(+), 3 deletions(-) create mode 100644 .github/renovate.json diff --git a/.github/renovate.json b/.github/renovate.json new file mode 100644 index 0000000000..096402da40 --- /dev/null +++ b/.github/renovate.json @@ -0,0 +1,23 @@ +{ + "$schema": "https://docs.renovatebot.com/renovate-schema.json", + "extends": [ "config:recommended" ], + "enabledManagers": [ + "custom.regex" + ], + "bumpVersion": "patch", + "ignorePaths": [ + "charts/enterprise-logs-simple/", + "charts/enterprise-metrics/" + ], + "customManagers": [ + { + "customType": "regex", + "fileMatch": [ + "(^|/)\\.github/workflows/.+\\.ya?ml$" + ], + "matchStrings": [ + "# renovate: datasource=(?[\\w-]+) depName=(?[\\w\\/-]+)( extractVersion=(?.*))?\\s+?(default|\\w+_VERSION|version): (?.*)\\s" + ] + } + ] +} diff --git a/.github/workflows/lint-test.yaml b/.github/workflows/lint-test.yaml index f5d3528496..956bd3d808 100644 --- a/.github/workflows/lint-test.yaml +++ b/.github/workflows/lint-test.yaml @@ -15,6 +15,7 @@ on: type: boolean helm_version: description: version of the helm binary + # renovate: datasource=github-tags depName=helm/helm default: v3.8.2 required: false type: string diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index daa9d1246d..6573443b31 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -21,15 +21,18 @@ jobs: uses: actions/checkout@v2 - name: Check Docs + env: + # renovate: datasource=docker depName=jnorwood/helm-docs + HELM_DOCS_VERSION: v1.8.1 run: | - docker run --rm --volume "$(pwd):/helm-docs" -u "$(id -u)" jnorwood/helm-docs:v1.8.1 + docker run --rm --volume "$(pwd):/helm-docs" -u "$(id -u)" jnorwood/helm-docs:${{ env.HELM_DOCS_VERSION }} if ! git diff --exit-code; then echo "Documentation not up to date. Please run helm-docs and commit changes!" >&2 exit 1 fi - name: Lint Code Base - uses: docker://github/super-linter:v3.12.0 + uses: super-linter/super-linter:v3.12.0 env: FILTER_REGEX_EXCLUDE: .*(README\.md|Chart\.yaml|NOTES.txt).* FILTER_REGEX_INCLUDE: ${{ inputs.filter_regex_include }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 800c0a59b9..434a53051b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -27,6 +27,7 @@ jobs: - name: Set up Helm uses: azure/setup-helm@v3.5 with: + # renovate: datasource=github-tags depName=helm/helm version: v3.12.0 - name: Add dependency chart repos diff --git a/.github/workflows/update-helm-repo.yaml b/.github/workflows/update-helm-repo.yaml index 8382c1f231..f8856e26db 100644 --- a/.github/workflows/update-helm-repo.yaml +++ b/.github/workflows/update-helm-repo.yaml @@ -40,6 +40,8 @@ env: CR_INDEX_PATH: "${{ github.workspace }}/.cr-index" CR_PACKAGE_PATH: "${{ github.workspace }}/.cr-release-packages" CR_TOOL_PATH: "${{ github.workspace }}/.cr-tool" + # renovate: datasource=github-tags depName=helm/chart-releaser extractVersion=^v?(?.*)$ + CR_TOOL_VERSION: 1.4.0 HELM_TAG_PREFIX: "${{ inputs.helm_tag_prefix }}" jobs: @@ -143,6 +145,7 @@ jobs: - name: Install Helm uses: azure/setup-helm@v1 with: + # renovate: datasource=github-tags depName=helm/helm version: v3.5.2 - name: Add dependency chart repos @@ -180,7 +183,7 @@ jobs: mkdir "${CR_TOOL_PATH}" mkdir "${CR_PACKAGE_PATH}" mkdir "${CR_INDEX_PATH}" - curl -sSLo cr.tar.gz "https://github.com/helm/chart-releaser/releases/download/v1.4.0/chart-releaser_1.4.0_linux_amd64.tar.gz" + curl -sSLo cr.tar.gz "https://github.com/helm/chart-releaser/releases/download/v${{ env.CR_TOOL_VERSION }}/chart-releaser_${{ env.CR_TOOL_VERSION }}_linux_amd64.tar.gz" tar -xzf cr.tar.gz -C "${CR_TOOL_PATH}" rm -f cr.tar.gz