From 85e2f9607c0c12943596f5adf981d5586ffd7a99 Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Thu, 16 Oct 2025 21:11:46 +0200 Subject: [PATCH 1/3] fix(ci): replace volker.raschek/helm with docker.io/alpine/helm --- .gitea/workflows/helm.yaml | 73 +++++++++++++++++++++++++------------- renovate.json | 19 ++++++++++ 2 files changed, 68 insertions(+), 24 deletions(-) diff --git a/.gitea/workflows/helm.yaml b/.gitea/workflows/helm.yaml index f06bba2..399b0ad 100644 --- a/.gitea/workflows/helm.yaml +++ b/.gitea/workflows/helm.yaml @@ -12,31 +12,56 @@ on: jobs: helm-lint: - container: - image: docker.io/volkerraschek/helm:3.19.0 - runs-on: - - ubuntu-latest + container: docker.io/alpine/helm:3.19.0 + name: Execute helm lint + runs-on: ubuntu-latest steps: - - name: Install tooling - run: | - apk update - apk add git npm - - uses: actions/checkout@v5.0.0 - - name: Lint helm files - run: | - helm lint --values values.yaml . + - name: Install additional tools + run: | + apk update + apk add --update bash make nodejs + - uses: actions/checkout@v5.0.0 + - name: Install helm chart dependencies + run: helm dependency build + - name: Execute helm lint + run: helm lint + + helm-template: + container: docker.io/alpine/helm:3.19.0 + name: Execute helm template + runs-on: ubuntu-latest + steps: + - name: Install additional tools + run: | + apk update + apk add --update bash make nodejs + - uses: actions/checkout@v5.0.0 + - name: Extract repository owner and name + run: | + echo "REPOSITORY_NAME=$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 2 | sed --regexp-extended 's/-charts?//g')" >> $GITHUB_ENV + echo "REPOSITORY_OWNER=$(echo ${GITHUB_REPOSITORY} | cut -d '/' -f 1)" >> $GITHUB_ENV + - name: Install helm chart dependencies + run: helm dependency build + - name: Execute helm template + run: helm template --debug "${REPOSITORY_NAME}" . helm-unittest: - container: - image: docker.io/volkerraschek/helm:3.19.0 - runs-on: - - ubuntu-latest + container: docker.io/alpine/helm:3.19.0 + env: + HELM_UNITTEST_VERSION: v1.0.1 # renovate: datasource=github-releases depName=helm-unittest/helm-unittest + name: Execute helm unittest + runs-on: ubuntu-latest steps: - - name: Install tooling - run: | - apk update - apk add git npm - - uses: actions/checkout@v5.0.0 - - name: Unittest - run: | - helm unittest --strict --file 'unittests/**/*.yaml' ./ \ No newline at end of file + - name: Install additional tools + run: | + apk update + apk add --update bash make nodejs npm yamllint ncurses + - uses: actions/checkout@v5.0.0 + - name: Install helm chart dependencies + run: helm dependency build + - name: Install helm plugin 'unittest' + run: helm plugin install --version "${HELM_UNITTEST_VERSION}" https://github.com/helm-unittest/helm-unittest + - name: Execute helm unittest + env: + TERM: xterm + run: helm unittest --strict --file 'unittests/**/*.yaml' ./ diff --git a/renovate.json b/renovate.json index 4475ab9..41ecdd9 100644 --- a/renovate.json +++ b/renovate.json @@ -31,6 +31,16 @@ "packageNameTemplate": "https://git.cryptic.systems/volker.raschek/reposilite-charts", "datasourceTemplate": "git-tags", "versioningTemplate": "semver" + }, + { + "customType": "regex", + "datasourceTemplate": "github-releases", + "managerFilePatterns": [ + "/.vscode/settings\\.json$/" + ], + "matchStrings": [ + "https:\\/\\/raw\\.githubusercontent\\.com\\/(?[^\\s]+?)\\/(?v[0-9.]+?)\\/schema\\/helm-testsuite\\.json" + ] } ], "packageRules": [ @@ -41,6 +51,15 @@ "volkerraschek/helm" ] }, + { + "groupName": "Update helm plugin 'unittest'", + "matchDepNames": [ + "helm-unittest/helm-unittest" + ], + "matchDatasources": [ + "github-releases" + ] + }, { "groupName": "Update docker.io/library/node", "matchDepNames": [ -- 2.49.1 From 9472abe37eccb1a204d1ad8ae45ab02ad9ce3afc Mon Sep 17 00:00:00 2001 From: Markus Pesch Date: Thu, 16 Oct 2025 21:19:41 +0200 Subject: [PATCH 2/3] fix(renovate): replace managerFilePatterns with fileMatch --- renovate.json | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/renovate.json b/renovate.json index 41ecdd9..9172948 100644 --- a/renovate.json +++ b/renovate.json @@ -23,7 +23,9 @@ }, { "customType": "regex", - "fileMatch": ["^README\\.md$"], + "fileMatch": [ + "^README\\.md$" + ], "matchStrings": [ "CHART_VERSION=(?.*)" ], @@ -35,8 +37,8 @@ { "customType": "regex", "datasourceTemplate": "github-releases", - "managerFilePatterns": [ - "/.vscode/settings\\.json$/" + "fileMatch": [ + ".vscode/settings\\.json$" ], "matchStrings": [ "https:\\/\\/raw\\.githubusercontent\\.com\\/(?[^\\s]+?)\\/(?v[0-9.]+?)\\/schema\\/helm-testsuite\\.json" @@ -111,4 +113,4 @@ ], "executionMode": "update" } -} +} \ No newline at end of file -- 2.49.1 From 7e744a1ff158fae630ea60c125bed7036cace4ac Mon Sep 17 00:00:00 2001 From: CSRBot Date: Thu, 16 Oct 2025 21:20:32 +0200 Subject: [PATCH 3/3] chore(deps): update dependency helm-unittest/helm-unittest to v1.0.3 --- .gitea/workflows/helm.yaml | 2 +- .vscode/settings.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/helm.yaml b/.gitea/workflows/helm.yaml index 399b0ad..edeb0f6 100644 --- a/.gitea/workflows/helm.yaml +++ b/.gitea/workflows/helm.yaml @@ -48,7 +48,7 @@ jobs: helm-unittest: container: docker.io/alpine/helm:3.19.0 env: - HELM_UNITTEST_VERSION: v1.0.1 # renovate: datasource=github-releases depName=helm-unittest/helm-unittest + HELM_UNITTEST_VERSION: v1.0.3 # renovate: datasource=github-releases depName=helm-unittest/helm-unittest name: Execute helm unittest runs-on: ubuntu-latest steps: diff --git a/.vscode/settings.json b/.vscode/settings.json index a73833c..f65313f 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,6 @@ { "yaml.schemas": { - "https://raw.githubusercontent.com/helm-unittest/helm-unittest/v1.0.2/schema/helm-testsuite.json": [ + "https://raw.githubusercontent.com/helm-unittest/helm-unittest/v1.0.3/schema/helm-testsuite.json": [ "/unittests/**/*.yaml" ] }, -- 2.49.1