From 565a3d69164b138fe97caf43cf220adb94bb0c22 Mon Sep 17 00:00:00 2001 From: Muneeb Aijaz Date: Fri, 10 Jan 2025 19:55:08 +0500 Subject: [PATCH 1/7] Update helm chart to 1.2.1 --- deployments/kubernetes/chart/reloader/Chart.yaml | 2 +- deployments/kubernetes/chart/reloader/values.yaml | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/deployments/kubernetes/chart/reloader/Chart.yaml b/deployments/kubernetes/chart/reloader/Chart.yaml index 13e8c2d73..548748f13 100644 --- a/deployments/kubernetes/chart/reloader/Chart.yaml +++ b/deployments/kubernetes/chart/reloader/Chart.yaml @@ -4,7 +4,7 @@ apiVersion: v1 name: reloader description: Reloader chart that runs on kubernetes version: 1.2.1 -appVersion: v1.2.0 +appVersion: v1.2.1 keywords: - Reloader - kubernetes diff --git a/deployments/kubernetes/chart/reloader/values.yaml b/deployments/kubernetes/chart/reloader/values.yaml index 9e9be805e..5ccbdc5b0 100644 --- a/deployments/kubernetes/chart/reloader/values.yaml +++ b/deployments/kubernetes/chart/reloader/values.yaml @@ -96,11 +96,11 @@ reloader: labels: provider: stakater group: com.stakater.platform - version: v1.2.0 + version: v1.2.1 image: name: ghcr.io/stakater/reloader base: stakater/reloader - tag: v1.2.0 + tag: v1.2.1 pullPolicy: IfNotPresent # Support for extra environment variables. env: From 0e4db821d9c32951f662d7b319139a60d5f11114 Mon Sep 17 00:00:00 2001 From: Muneeb Aijaz Date: Fri, 10 Jan 2025 20:25:48 +0500 Subject: [PATCH 2/7] update workflows --- .github/workflows/pull_request-helm.yaml | 18 +++++++++++++++++- .github/workflows/push-helm-chart.yaml | 6 +++--- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pull_request-helm.yaml b/.github/workflows/pull_request-helm.yaml index 8bb5d6026..f98650d17 100644 --- a/.github/workflows/pull_request-helm.yaml +++ b/.github/workflows/pull_request-helm.yaml @@ -16,7 +16,7 @@ env: jobs: - helm-validation: + helm-chart-validation: permissions: contents: read @@ -42,6 +42,22 @@ jobs: with: charts: deployments/kubernetes/chart/reloader + helm-version-validation: + needs: helm-chart-validation + + permissions: + contents: read + + runs-on: ubuntu-latest + name: Helm Chart Validation + if: ${{ contains(github.event.pull_request.labels.*.name, 'release/helm-chart' }} + + - name: Check out code + uses: actions/checkout@v4 + with: + ref: ${{github.event.pull_request.head.sha}} + fetch-depth: 0 + - name: Add Stakater Helm Repo run: | helm repo add stakater https://stakater.github.io/stakater-charts diff --git a/.github/workflows/push-helm-chart.yaml b/.github/workflows/push-helm-chart.yaml index 404bb496a..7c8363221 100644 --- a/.github/workflows/push-helm-chart.yaml +++ b/.github/workflows/push-helm-chart.yaml @@ -15,14 +15,14 @@ env: REGISTRY: ghcr.io jobs: - build: + verify-and-push-helm-chart: permissions: contents: read packages: write # to push artifacts to `ghcr.io` - name: Build - if: github.event.pull_request.merged == true + name: Verify and Push Helm Chart + if: ${{ (github.event.pull_request.merged == true) && (contains(github.event.pull_request.labels.*.name, 'release/helm-chart')) }} runs-on: ubuntu-latest steps: From 277dde8525948cc7679413a646afead36e7b14bf Mon Sep 17 00:00:00 2001 From: Muneeb Aijaz Date: Fri, 10 Jan 2025 20:29:32 +0500 Subject: [PATCH 3/7] update workflows --- .github/workflows/push-pr-image.yaml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/push-pr-image.yaml b/.github/workflows/push-pr-image.yaml index 279174419..ae051b934 100644 --- a/.github/workflows/push-pr-image.yaml +++ b/.github/workflows/push-pr-image.yaml @@ -5,6 +5,15 @@ on: branches: - master types: [ labeled ] + paths: + - '!.markdownlint.yaml' + - '!.vale.ini' + - '!Dockerfile-docs' + - '!docs-nginx.conf' + - '!docs/**' + - '!theme_common' + - '!theme_override' + - '!deployments/kubernetes/chart/reloader/**' env: DOCKER_FILE_PATH: Dockerfile From 4de1659965dd15be469f87fb648d636a50323eca Mon Sep 17 00:00:00 2001 From: Muneeb Aijaz Date: Fri, 10 Jan 2025 20:32:48 +0500 Subject: [PATCH 4/7] update workflows --- .github/workflows/pull_request-helm.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pull_request-helm.yaml b/.github/workflows/pull_request-helm.yaml index f98650d17..0eb8c5249 100644 --- a/.github/workflows/pull_request-helm.yaml +++ b/.github/workflows/pull_request-helm.yaml @@ -52,6 +52,8 @@ jobs: name: Helm Chart Validation if: ${{ contains(github.event.pull_request.labels.*.name, 'release/helm-chart' }} + steps: + - name: Check out code uses: actions/checkout@v4 with: From ee8ff2d4138662b8d686626195cc79e1f802dd5a Mon Sep 17 00:00:00 2001 From: Muneeb Aijaz Date: Fri, 10 Jan 2025 20:33:41 +0500 Subject: [PATCH 5/7] update workflows --- .github/workflows/pull_request-helm.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request-helm.yaml b/.github/workflows/pull_request-helm.yaml index 0eb8c5249..82e9277f1 100644 --- a/.github/workflows/pull_request-helm.yaml +++ b/.github/workflows/pull_request-helm.yaml @@ -50,7 +50,7 @@ jobs: runs-on: ubuntu-latest name: Helm Chart Validation - if: ${{ contains(github.event.pull_request.labels.*.name, 'release/helm-chart' }} + if: ${{ contains(github.event.pull_request.labels.*.name, 'release/helm-chart') }} steps: From 33f28ec1e305c027730e5269eec73e2c372b64cf Mon Sep 17 00:00:00 2001 From: Muneeb Aijaz Date: Fri, 10 Jan 2025 20:35:36 +0500 Subject: [PATCH 6/7] update workflows --- .github/workflows/pull_request-helm.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pull_request-helm.yaml b/.github/workflows/pull_request-helm.yaml index 82e9277f1..b3f80eb10 100644 --- a/.github/workflows/pull_request-helm.yaml +++ b/.github/workflows/pull_request-helm.yaml @@ -49,7 +49,7 @@ jobs: contents: read runs-on: ubuntu-latest - name: Helm Chart Validation + name: Helm Version Validation if: ${{ contains(github.event.pull_request.labels.*.name, 'release/helm-chart') }} steps: From 5246ec70e7cc93a0d8b40dd74de2c08ab3e39fca Mon Sep 17 00:00:00 2001 From: Muneeb Aijaz Date: Fri, 10 Jan 2025 20:43:50 +0500 Subject: [PATCH 7/7] update readme --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ebaad021b..21fcd591f 100644 --- a/README.md +++ b/README.md @@ -462,6 +462,8 @@ _Helm chart versioning_: The Reloader Helm chart is maintained in [this reposito Helm chart will be released to the chart registry whenever files in `deployments/kubernetes/chart/reloader/**` change on the main branch. +Helm Chart will be released by the maintainers, on labelling a PR with `release/helm-chart` and pre-maturely updating the `version` field in `Chart.yaml` file. + ## Changelog View the [releases page](https://github.com/stakater/Reloader/releases) to see what has changed in each release.