Skip to content

Commit

Permalink
chore: Introduced Renovate (WIP)
Browse files Browse the repository at this point in the history
Signed-off-by: kvanzuijlen <[email protected]>
  • Loading branch information
kvanzuijlen committed Mar 11, 2024
1 parent 7cf6a88 commit ad97e7d
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 3 deletions.
23 changes: 23 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -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=(?<datasource>[\\w-]+) depName=(?<depName>[\\w\\/-]+)( extractVersion=(?<extractVersion>.*))?\\s+?(default|\\w+_VERSION|version): (?<currentValue>.*)\\s"
]
}
]
}
1 change: 1 addition & 0 deletions .github/workflows/lint-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- name: Set up Helm
uses: azure/[email protected]
with:
# renovate: datasource=github-tags depName=helm/helm
version: v3.12.0

- name: Add dependency chart repos
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/update-helm-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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?(?<version>.*)$
CR_TOOL_VERSION: 1.4.0
HELM_TAG_PREFIX: "${{ inputs.helm_tag_prefix }}"

jobs:
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit ad97e7d

Please sign in to comment.