From 6e1d17d150d1154bfb701ec5160f44d75d24a4cb Mon Sep 17 00:00:00 2001 From: michalby24 Date: Wed, 2 Jul 2025 10:39:07 +0300 Subject: [PATCH 01/22] fix(build-and-push-helm): fix push step --- .../workflows/test-build-and-push-helm.yaml | 2 ++ actions/build-and-push-helm/README.md | 7 ---- actions/build-and-push-helm/action.yaml | 33 ++++++------------- 3 files changed, 12 insertions(+), 30 deletions(-) diff --git a/.github/workflows/test-build-and-push-helm.yaml b/.github/workflows/test-build-and-push-helm.yaml index 05f1c825..b6af46fb 100644 --- a/.github/workflows/test-build-and-push-helm.yaml +++ b/.github/workflows/test-build-and-push-helm.yaml @@ -1,6 +1,8 @@ name: Test Build and Push Helm Chart on: + workflow_dispatch: + workflow_call: push: branches: - master diff --git a/actions/build-and-push-helm/README.md b/actions/build-and-push-helm/README.md index 725e9a69..86fc944e 100644 --- a/actions/build-and-push-helm/README.md +++ b/actions/build-and-push-helm/README.md @@ -11,13 +11,6 @@ This GitHub Action packages a Helm chart and pushes it to a Azure Container Regi | `registry` | OCI registry URL where the chart will be pushed (e.g. ACR address) | ✅ Yes | | -## 📤 Outputs - -| Name | Description | -|---------|----------------------------------| -| `chart` | Name of the Helm chart | -| `ver` | Version of the Helm chart | - ## 🚀 Usage diff --git a/actions/build-and-push-helm/action.yaml b/actions/build-and-push-helm/action.yaml index 6fb9a214..1473a104 100644 --- a/actions/build-and-push-helm/action.yaml +++ b/actions/build-and-push-helm/action.yaml @@ -11,11 +11,7 @@ inputs: registry: description: "Azure Registry to authenticate against." required: true -outputs: - chart: - description: "Name of the Helm chart." - ver: - description: "Version of the Helm chart." + runs: using: "composite" steps: @@ -27,31 +23,22 @@ runs: with: version: "v3.12.0" - - name: Get chart's name - id: set_chart_name - run: | - CHART=$(grep '^name:' Chart.yaml | awk '{print $2}') - echo "chart=$CHART" >> $GITHUB_OUTPUT - working-directory: ${{ inputs.context }} - shell: bash - - - name: Get the chart's version - id: set_chart_version + - name: Package chart into tgz file + id: package_chart run: | - VER=$(grep '^version:' Chart.yaml | awk '{print $2}') - echo "ver=$VER" >> $GITHUB_OUTPUT + PACKAGE_OUTPUT=$(helm package . --dependency-update) + PACKAGE_FILE=$(echo "$PACKAGE_OUTPUT" | awk -F ': ' '/Successfully packaged chart and saved it to:/ {print $2}') + echo "package_file=$PACKAGE_FILE" >> $GITHUB_OUTPUT working-directory: ${{ inputs.context }} shell: bash - - name: Package chart into tgz file + - name: Debug output filename run: | - helm package . --dependency-update - working-directory: ${{ inputs.context }} + echo "Packaged chart file: ${{ steps.package_chart.outputs.package_file }}" shell: bash - name: Publish chart to ACR run: | - helm push ${{ steps.set-chart-name.outputs.chart }}-${{ steps.set-chart-version.outputs.ver }}.tgz \ - oci://${{ inputs.registry }}/helm/${{ inputs.domain }} - working-directory: ${{ inputs.context }} + helm push "${{ steps.package_chart.outputs.package_file }}" \ + oci://${{ inputs.registry }}/helm/${{ inputs.scope }} shell: bash From cfe933b0eee27fad8450d442de4d3f183de0b513 Mon Sep 17 00:00:00 2001 From: michalby24 Date: Wed, 2 Jul 2025 10:40:00 +0300 Subject: [PATCH 02/22] fix(build-and-push-helm): test chart --- test/helm/Chart.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/helm/Chart.yaml b/test/helm/Chart.yaml index 93afb8dd..538f8356 100644 --- a/test/helm/Chart.yaml +++ b/test/helm/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: hello-world-chart description: A Helm chart for Kubernetes type: application -version: 6.0.0 +version: 6.0.1 appVersion: 1.16.0 From 40f207f49f32a37fa10ba42feb84a675f6ddd66f Mon Sep 17 00:00:00 2001 From: michalby24 Date: Wed, 2 Jul 2025 10:41:23 +0300 Subject: [PATCH 03/22] fix(build-and-push-helm): fix push step --- actions/build-and-push-helm/action.yaml | 7 ++++--- test/helm/Chart.yaml | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/actions/build-and-push-helm/action.yaml b/actions/build-and-push-helm/action.yaml index 1473a104..885e56b4 100644 --- a/actions/build-and-push-helm/action.yaml +++ b/actions/build-and-push-helm/action.yaml @@ -1,12 +1,13 @@ name: "Build and Push Helm Chart" description: "Builds and publishes a Helm chart to the specified registry." inputs: - domain: - description: "The chart's domain." + scope: + description: "Scope or namespace for the Helm chart." required: true + default: "" context: description: "Path to the helm directory." - required: false + required: true default: "./helm" registry: description: "Azure Registry to authenticate against." diff --git a/test/helm/Chart.yaml b/test/helm/Chart.yaml index 538f8356..61ac9ae0 100644 --- a/test/helm/Chart.yaml +++ b/test/helm/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: hello-world-chart description: A Helm chart for Kubernetes type: application -version: 6.0.1 +version: 6.0.3 appVersion: 1.16.0 From 9f9a2a3a0a4992d36be0bb10c9030e2b19179591 Mon Sep 17 00:00:00 2001 From: michalby24 Date: Wed, 2 Jul 2025 10:43:36 +0300 Subject: [PATCH 04/22] fix(build-and-push-helm): test chart --- actions/build-and-push-helm/action.yaml | 6 +++--- test/helm/Chart.yaml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/actions/build-and-push-helm/action.yaml b/actions/build-and-push-helm/action.yaml index 885e56b4..5527a2ff 100644 --- a/actions/build-and-push-helm/action.yaml +++ b/actions/build-and-push-helm/action.yaml @@ -1,8 +1,8 @@ name: "Build and Push Helm Chart" description: "Builds and publishes a Helm chart to the specified registry." inputs: - scope: - description: "Scope or namespace for the Helm chart." + domain: + description: "Domain or namespace for the Helm chart." required: true default: "" context: @@ -41,5 +41,5 @@ runs: - name: Publish chart to ACR run: | helm push "${{ steps.package_chart.outputs.package_file }}" \ - oci://${{ inputs.registry }}/helm/${{ inputs.scope }} + oci://${{ inputs.registry }}/helm/${{ inputs.domain }} shell: bash diff --git a/test/helm/Chart.yaml b/test/helm/Chart.yaml index 61ac9ae0..93afb8dd 100644 --- a/test/helm/Chart.yaml +++ b/test/helm/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: hello-world-chart description: A Helm chart for Kubernetes type: application -version: 6.0.3 +version: 6.0.0 appVersion: 1.16.0 From cacddc9a972e22b9b72b4cfb1f859abc3b7ff0a3 Mon Sep 17 00:00:00 2001 From: michalby24 Date: Wed, 2 Jul 2025 10:46:13 +0300 Subject: [PATCH 05/22] fix(build-and-push-helm): remove debug --- actions/build-and-push-helm/action.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/actions/build-and-push-helm/action.yaml b/actions/build-and-push-helm/action.yaml index 5527a2ff..c35cf72f 100644 --- a/actions/build-and-push-helm/action.yaml +++ b/actions/build-and-push-helm/action.yaml @@ -33,11 +33,6 @@ runs: working-directory: ${{ inputs.context }} shell: bash - - name: Debug output filename - run: | - echo "Packaged chart file: ${{ steps.package_chart.outputs.package_file }}" - shell: bash - - name: Publish chart to ACR run: | helm push "${{ steps.package_chart.outputs.package_file }}" \ From 90095869cde761c57138f8e6cadb87b2c15a12be Mon Sep 17 00:00:00 2001 From: michalby24 Date: Wed, 2 Jul 2025 10:47:17 +0300 Subject: [PATCH 06/22] fix(build-and-push-helm): remove debug --- .github/workflows/test-build-and-push-helm.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/test-build-and-push-helm.yaml b/.github/workflows/test-build-and-push-helm.yaml index b6af46fb..05f1c825 100644 --- a/.github/workflows/test-build-and-push-helm.yaml +++ b/.github/workflows/test-build-and-push-helm.yaml @@ -1,8 +1,6 @@ name: Test Build and Push Helm Chart on: - workflow_dispatch: - workflow_call: push: branches: - master From 2e11cf8c25c4085ac1af9a080ee4b63737dc9ca2 Mon Sep 17 00:00:00 2001 From: michalby24 Date: Wed, 2 Jul 2025 10:48:48 +0300 Subject: [PATCH 07/22] fix(build-and-push-helm): remove typo --- actions/build-and-push-helm/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/build-and-push-helm/action.yaml b/actions/build-and-push-helm/action.yaml index c35cf72f..1f754572 100644 --- a/actions/build-and-push-helm/action.yaml +++ b/actions/build-and-push-helm/action.yaml @@ -7,7 +7,7 @@ inputs: default: "" context: description: "Path to the helm directory." - required: true + required: false default: "./helm" registry: description: "Azure Registry to authenticate against." From 7ec01759f14f1042301580a8cab65fa930dff9c0 Mon Sep 17 00:00:00 2001 From: michalby24 Date: Wed, 2 Jul 2025 10:49:30 +0300 Subject: [PATCH 08/22] fix(build-and-push-helm): remove debug --- actions/build-and-push-helm/action.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/actions/build-and-push-helm/action.yaml b/actions/build-and-push-helm/action.yaml index 1f754572..cf362c79 100644 --- a/actions/build-and-push-helm/action.yaml +++ b/actions/build-and-push-helm/action.yaml @@ -2,9 +2,8 @@ name: "Build and Push Helm Chart" description: "Builds and publishes a Helm chart to the specified registry." inputs: domain: - description: "Domain or namespace for the Helm chart." + description: "The chart's domain." required: true - default: "" context: description: "Path to the helm directory." required: false From 896af1b57ea2d821751170f51ff17b77f2d83369 Mon Sep 17 00:00:00 2001 From: michalby24 Date: Wed, 2 Jul 2025 13:52:10 +0300 Subject: [PATCH 09/22] fix(build-and-push-helm): restore chart name and version --- .github/workflows/test-build-and-push-helm.yaml | 2 ++ actions/build-and-push-helm/action.yaml | 16 ++++++++++++++++ 2 files changed, 18 insertions(+) diff --git a/.github/workflows/test-build-and-push-helm.yaml b/.github/workflows/test-build-and-push-helm.yaml index 05f1c825..49392358 100644 --- a/.github/workflows/test-build-and-push-helm.yaml +++ b/.github/workflows/test-build-and-push-helm.yaml @@ -1,6 +1,8 @@ name: Test Build and Push Helm Chart on: + workflow_dispatch: + workflow_call: push: branches: - master diff --git a/actions/build-and-push-helm/action.yaml b/actions/build-and-push-helm/action.yaml index cf362c79..8e6065ab 100644 --- a/actions/build-and-push-helm/action.yaml +++ b/actions/build-and-push-helm/action.yaml @@ -23,6 +23,22 @@ runs: with: version: "v3.12.0" + - name: Get chart's name + id: set_chart_name + run: | + CHART=$(grep '^name:' Chart.yaml | awk '{print $2}') + echo "chart=$CHART" >> $GITHUB_OUTPUT + working-directory: ${{ inputs.context }} + shell: bash + + - name: Get the chart's version + id: set_chart_version + run: | + VER=$(grep '^version:' Chart.yaml | awk '{print $2}') + echo "ver=$VER" >> $GITHUB_OUTPUT + working-directory: ${{ inputs.context }} + shell: bash + - name: Package chart into tgz file id: package_chart run: | From 0e2b0dd0478fb4b2905cc3457d707286d4af7213 Mon Sep 17 00:00:00 2001 From: michalby24 Date: Wed, 2 Jul 2025 13:53:59 +0300 Subject: [PATCH 10/22] fix(build-and-push-helm): remove debug --- .github/workflows/test-build-and-push-helm.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/test-build-and-push-helm.yaml b/.github/workflows/test-build-and-push-helm.yaml index 49392358..05f1c825 100644 --- a/.github/workflows/test-build-and-push-helm.yaml +++ b/.github/workflows/test-build-and-push-helm.yaml @@ -1,8 +1,6 @@ name: Test Build and Push Helm Chart on: - workflow_dispatch: - workflow_call: push: branches: - master From b3779fb96b6a5ce4d38974c8c373f38d25d6d9eb Mon Sep 17 00:00:00 2001 From: michalby24 Date: Wed, 2 Jul 2025 13:56:55 +0300 Subject: [PATCH 11/22] fix(build-and-push-helm): remove debug --- actions/build-and-push-helm/action.yaml | 8 +++++++- actions/update-artifacts-file/README.md | 10 ++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/actions/build-and-push-helm/action.yaml b/actions/build-and-push-helm/action.yaml index 8e6065ab..3cdc5f13 100644 --- a/actions/build-and-push-helm/action.yaml +++ b/actions/build-and-push-helm/action.yaml @@ -11,7 +11,13 @@ inputs: registry: description: "Azure Registry to authenticate against." required: true - +outputs: + chart: + description: "The name of the chart." + ver: + description: "The version of the chart." + package_file: + description: "The path to the packaged chart file." runs: using: "composite" steps: diff --git a/actions/update-artifacts-file/README.md b/actions/update-artifacts-file/README.md index 69b02cab..09b86ee7 100644 --- a/actions/update-artifacts-file/README.md +++ b/actions/update-artifacts-file/README.md @@ -26,6 +26,16 @@ This GitHub Action builds and publishes a Helm chart to a specified registry and --- +## 📤 Outputs + +| Name | Description | +|---------|----------------------------------| +| `chart` | Name of the Helm chart | +| `ver` | Version of the Helm chart | +| `package_file` | Packaged chart file | + +--- + ## 🚀 Usage From e966fbedc7abe395d3bd60d070af67c3b36ef7b3 Mon Sep 17 00:00:00 2001 From: michalby24 Date: Wed, 2 Jul 2025 13:58:57 +0300 Subject: [PATCH 12/22] fix(build-and-push-helm): wrong file --- actions/build-and-push-helm/README.md | 11 +++++++++++ actions/update-artifacts-file/README.md | 10 ---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/actions/build-and-push-helm/README.md b/actions/build-and-push-helm/README.md index 86fc944e..d54ee4fa 100644 --- a/actions/build-and-push-helm/README.md +++ b/actions/build-and-push-helm/README.md @@ -10,6 +10,17 @@ This GitHub Action packages a Helm chart and pushes it to a Azure Container Regi | `context` | Relative path to the Helm chart directory | ❌ No | `./helm` | | `registry` | OCI registry URL where the chart will be pushed (e.g. ACR address) | ✅ Yes | | +--- + +## 📤 Outputs + +| Name | Description | +|---------|----------------------------------| +| `chart` | Name of the Helm chart | +| `ver` | Version of the Helm chart | +| `package_file` | Packaged chart file | + +--- ## 🚀 Usage diff --git a/actions/update-artifacts-file/README.md b/actions/update-artifacts-file/README.md index 09b86ee7..69b02cab 100644 --- a/actions/update-artifacts-file/README.md +++ b/actions/update-artifacts-file/README.md @@ -26,16 +26,6 @@ This GitHub Action builds and publishes a Helm chart to a specified registry and --- -## 📤 Outputs - -| Name | Description | -|---------|----------------------------------| -| `chart` | Name of the Helm chart | -| `ver` | Version of the Helm chart | -| `package_file` | Packaged chart file | - ---- - ## 🚀 Usage From aa49b8a251d7298634ed15ce79676cff8e01433f Mon Sep 17 00:00:00 2001 From: michalby24 Date: Wed, 2 Jul 2025 15:51:26 +0300 Subject: [PATCH 13/22] fix(build-and-push-helm): change to ver and chart --- .../workflows/test-build-and-push-helm.yaml | 2 ++ actions/build-and-push-helm/README.md | 1 - actions/build-and-push-helm/action.yaml | 23 ++++++++++--------- 3 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test-build-and-push-helm.yaml b/.github/workflows/test-build-and-push-helm.yaml index 05f1c825..867a1ddf 100644 --- a/.github/workflows/test-build-and-push-helm.yaml +++ b/.github/workflows/test-build-and-push-helm.yaml @@ -1,6 +1,8 @@ name: Test Build and Push Helm Chart on: + workflow_dispatch: + workflow_run: push: branches: - master diff --git a/actions/build-and-push-helm/README.md b/actions/build-and-push-helm/README.md index d54ee4fa..20567dce 100644 --- a/actions/build-and-push-helm/README.md +++ b/actions/build-and-push-helm/README.md @@ -18,7 +18,6 @@ This GitHub Action packages a Helm chart and pushes it to a Azure Container Regi |---------|----------------------------------| | `chart` | Name of the Helm chart | | `ver` | Version of the Helm chart | -| `package_file` | Packaged chart file | --- diff --git a/actions/build-and-push-helm/action.yaml b/actions/build-and-push-helm/action.yaml index 3cdc5f13..44b9ca82 100644 --- a/actions/build-and-push-helm/action.yaml +++ b/actions/build-and-push-helm/action.yaml @@ -16,16 +16,15 @@ outputs: description: "The name of the chart." ver: description: "The version of the chart." - package_file: - description: "The path to the packaged chart file." + runs: using: "composite" steps: - name: Checkout helm chart repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + uses: actions/checkout@v4 - name: Setup Helm - uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 + uses: azure/setup-helm@v3.5 with: version: "v3.12.0" @@ -33,29 +32,31 @@ runs: id: set_chart_name run: | CHART=$(grep '^name:' Chart.yaml | awk '{print $2}') + echo "chart=$CHART" echo "chart=$CHART" >> $GITHUB_OUTPUT working-directory: ${{ inputs.context }} shell: bash - - name: Get the chart's version + - name: Get chart's version id: set_chart_version run: | VER=$(grep '^version:' Chart.yaml | awk '{print $2}') + echo "ver=$VER" echo "ver=$VER" >> $GITHUB_OUTPUT working-directory: ${{ inputs.context }} shell: bash - name: Package chart into tgz file - id: package_chart run: | - PACKAGE_OUTPUT=$(helm package . --dependency-update) - PACKAGE_FILE=$(echo "$PACKAGE_OUTPUT" | awk -F ': ' '/Successfully packaged chart and saved it to:/ {print $2}') - echo "package_file=$PACKAGE_FILE" >> $GITHUB_OUTPUT + helm package . --dependency-update working-directory: ${{ inputs.context }} shell: bash - name: Publish chart to ACR run: | - helm push "${{ steps.package_chart.outputs.package_file }}" \ - oci://${{ inputs.registry }}/helm/${{ inputs.domain }} + CHART="${{ steps.set_chart_name.outputs.chart }}" + VER="${{ steps.set_chart_version.outputs.ver }}" + FILE="$CHART-$VER.tgz" + helm push "$FILE" oci://${{ inputs.registry }}/helm/${{ inputs.domain }} + working-directory: ${{ inputs.context }} shell: bash From 4baa77832c058ae4763525571c12f921df8e1faa Mon Sep 17 00:00:00 2001 From: michalby24 Date: Wed, 2 Jul 2025 15:54:08 +0300 Subject: [PATCH 14/22] fix(build-and-push-helm): change to ver and chart --- .github/workflows/test-build-and-push-helm.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-build-and-push-helm.yaml b/.github/workflows/test-build-and-push-helm.yaml index 867a1ddf..b6af46fb 100644 --- a/.github/workflows/test-build-and-push-helm.yaml +++ b/.github/workflows/test-build-and-push-helm.yaml @@ -2,7 +2,7 @@ name: Test Build and Push Helm Chart on: workflow_dispatch: - workflow_run: + workflow_call: push: branches: - master From ac8ef8ec727dff948c014aeae066ff04f494d993 Mon Sep 17 00:00:00 2001 From: michalby24 Date: Wed, 2 Jul 2025 15:55:16 +0300 Subject: [PATCH 15/22] fix(build-and-push-helm): remove debug --- .github/workflows/test-build-and-push-helm.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/test-build-and-push-helm.yaml b/.github/workflows/test-build-and-push-helm.yaml index b6af46fb..05f1c825 100644 --- a/.github/workflows/test-build-and-push-helm.yaml +++ b/.github/workflows/test-build-and-push-helm.yaml @@ -1,8 +1,6 @@ name: Test Build and Push Helm Chart on: - workflow_dispatch: - workflow_call: push: branches: - master From 7d8fa660c6893f588bb4974c09766d6ee1e61b6a Mon Sep 17 00:00:00 2001 From: michalby24 Date: Thu, 3 Jul 2025 09:18:21 +0300 Subject: [PATCH 16/22] fix(build-and-push-helm): change to ver and chart --- actions/build-and-push-helm/action.yaml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/actions/build-and-push-helm/action.yaml b/actions/build-and-push-helm/action.yaml index 44b9ca82..7f9180f5 100644 --- a/actions/build-and-push-helm/action.yaml +++ b/actions/build-and-push-helm/action.yaml @@ -32,7 +32,6 @@ runs: id: set_chart_name run: | CHART=$(grep '^name:' Chart.yaml | awk '{print $2}') - echo "chart=$CHART" echo "chart=$CHART" >> $GITHUB_OUTPUT working-directory: ${{ inputs.context }} shell: bash @@ -41,7 +40,6 @@ runs: id: set_chart_version run: | VER=$(grep '^version:' Chart.yaml | awk '{print $2}') - echo "ver=$VER" echo "ver=$VER" >> $GITHUB_OUTPUT working-directory: ${{ inputs.context }} shell: bash @@ -54,9 +52,6 @@ runs: - name: Publish chart to ACR run: | - CHART="${{ steps.set_chart_name.outputs.chart }}" - VER="${{ steps.set_chart_version.outputs.ver }}" - FILE="$CHART-$VER.tgz" - helm push "$FILE" oci://${{ inputs.registry }}/helm/${{ inputs.domain }} + helm push "${{ steps.set_chart_name.outputs.chart }}-${{ steps.set_chart_version.outputs.ver }}.tgz" oci://${{ inputs.registry }}/helm/${{ inputs.domain }} working-directory: ${{ inputs.context }} shell: bash From ed3835d321785169fbb854bcf52073ef880b0a07 Mon Sep 17 00:00:00 2001 From: michalby24 Date: Thu, 3 Jul 2025 09:19:50 +0300 Subject: [PATCH 17/22] fix(build-and-push-helm): add debug --- .github/workflows/test-build-and-push-helm.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test-build-and-push-helm.yaml b/.github/workflows/test-build-and-push-helm.yaml index 05f1c825..b6af46fb 100644 --- a/.github/workflows/test-build-and-push-helm.yaml +++ b/.github/workflows/test-build-and-push-helm.yaml @@ -1,6 +1,8 @@ name: Test Build and Push Helm Chart on: + workflow_dispatch: + workflow_call: push: branches: - master From c5a61a289638a50899ae2b2ec8b05307e68c628f Mon Sep 17 00:00:00 2001 From: michalby24 Date: Thu, 3 Jul 2025 09:20:39 +0300 Subject: [PATCH 18/22] fix(build-and-push-helm): remove debug --- .github/workflows/test-build-and-push-helm.yaml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/test-build-and-push-helm.yaml b/.github/workflows/test-build-and-push-helm.yaml index b6af46fb..05f1c825 100644 --- a/.github/workflows/test-build-and-push-helm.yaml +++ b/.github/workflows/test-build-and-push-helm.yaml @@ -1,8 +1,6 @@ name: Test Build and Push Helm Chart on: - workflow_dispatch: - workflow_call: push: branches: - master From 76edd09b9ea659986645d7584d8e1d4b7b9d320a Mon Sep 17 00:00:00 2001 From: michalby24 Date: Thu, 3 Jul 2025 11:36:17 +0300 Subject: [PATCH 19/22] fix(build-and-push-helm): test --- actions/build-and-push-helm/action.yaml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/actions/build-and-push-helm/action.yaml b/actions/build-and-push-helm/action.yaml index 7f9180f5..add1d743 100644 --- a/actions/build-and-push-helm/action.yaml +++ b/actions/build-and-push-helm/action.yaml @@ -14,21 +14,23 @@ inputs: outputs: chart: description: "The name of the chart." + value: ${{ steps.set_chart_name.outputs.chart }} ver: description: "The version of the chart." + value: ${{ steps.set_chart_version.outputs.ver }} runs: using: "composite" steps: - name: Checkout helm chart repository - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup Helm - uses: azure/setup-helm@v3.5 + uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 #v3.5 with: version: "v3.12.0" - - name: Get chart's name + - name: Get the chart's name id: set_chart_name run: | CHART=$(grep '^name:' Chart.yaml | awk '{print $2}') From 76c155077b6afe610a255919e3e48bc9ffbce38d Mon Sep 17 00:00:00 2001 From: michalby24 Date: Thu, 3 Jul 2025 12:56:06 +0300 Subject: [PATCH 20/22] fix(build-and-push-helm): --- --- actions/build-and-push-helm/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/actions/build-and-push-helm/README.md b/actions/build-and-push-helm/README.md index 20567dce..c3e2c1b1 100644 --- a/actions/build-and-push-helm/README.md +++ b/actions/build-and-push-helm/README.md @@ -10,7 +10,6 @@ This GitHub Action packages a Helm chart and pushes it to a Azure Container Regi | `context` | Relative path to the Helm chart directory | ❌ No | `./helm` | | `registry` | OCI registry URL where the chart will be pushed (e.g. ACR address) | ✅ Yes | | ---- ## 📤 Outputs @@ -19,7 +18,6 @@ This GitHub Action packages a Helm chart and pushes it to a Azure Container Regi | `chart` | Name of the Helm chart | | `ver` | Version of the Helm chart | ---- ## 🚀 Usage From debec8ca3ab5aaf17d0a9306036991593c221ce6 Mon Sep 17 00:00:00 2001 From: Netanel Cohen <34451523+netanelC@users.noreply.github.com> Date: Thu, 3 Jul 2025 13:00:32 +0300 Subject: [PATCH 21/22] chore: revert change in README --- actions/build-and-push-helm/README.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/actions/build-and-push-helm/README.md b/actions/build-and-push-helm/README.md index c3e2c1b1..df60faa1 100644 --- a/actions/build-and-push-helm/README.md +++ b/actions/build-and-push-helm/README.md @@ -18,7 +18,6 @@ This GitHub Action packages a Helm chart and pushes it to a Azure Container Regi | `chart` | Name of the Helm chart | | `ver` | Version of the Helm chart | - ## 🚀 Usage @@ -39,4 +38,4 @@ This GitHub Action packages a Helm chart and pushes it to a Azure Container Regi registry: ${{ secrets.ACR_URL }} ``` - \ No newline at end of file + From 6d63b12907791a7d049eb4d4ad2456b1a157e49e Mon Sep 17 00:00:00 2001 From: netanelC Date: Thu, 3 Jul 2025 15:03:15 +0300 Subject: [PATCH 22/22] chore: add space --- actions/build-and-push-helm/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/actions/build-and-push-helm/action.yaml b/actions/build-and-push-helm/action.yaml index add1d743..078fe7c3 100644 --- a/actions/build-and-push-helm/action.yaml +++ b/actions/build-and-push-helm/action.yaml @@ -26,7 +26,7 @@ runs: uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - name: Setup Helm - uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 #v3.5 + uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 with: version: "v3.12.0"