add chart paths for helm actions

This commit is contained in:
2026-05-29 10:42:34 -04:00
parent 930a69d850
commit 317c2289c9
8 changed files with 28 additions and 6 deletions
+1
View File
@@ -17,6 +17,7 @@ Diff a Helm chart for a deployment in a Kubernetes cluster
| `IMAGE_TAG` | <p>The image tag to deploy</p> | `true` | `""` |
| `CONTAINER_NAME` | <p>The container component to update</p> | `true` | `""` |
| `VALUES_FILE` | <p>The values file to use</p> | `false` | `./helm/values.yaml` |
| `CHART_PATH` | <p>Path to the Helm chart</p> | `false` | `./helm` |
<!-- action-docs-inputs source="action.yml" -->
<!-- action-docs-runs source="action.yml" -->
+4 -1
View File
@@ -19,6 +19,9 @@ inputs:
VALUES_FILE:
description: "The values file to use"
default: "./helm/values.yaml"
CHART_PATH:
description: "Path to the Helm chart"
default: "./helm"
runs:
using: composite
@@ -30,6 +33,6 @@ runs:
- name: Helm Diff
shell: sh
run: |
CMD="helm diff upgrade ${{ inputs.DEPLOYMENT_NAME }} ./helm -n ${{ inputs.DEPLOYMENT_NAMESPACE }} --values ${{ inputs.VALUES_FILE }} --set deploy.${{ inputs.CONTAINER_NAME }}.tag=${{ inputs.IMAGE_TAG }} --set image.repository=${{ inputs.IMAGE_PATH }} --context 5"
CMD="helm diff upgrade ${{ inputs.DEPLOYMENT_NAME }} ${{ inputs.CHART_PATH }} -n ${{ inputs.DEPLOYMENT_NAMESPACE }} --values ${{ inputs.VALUES_FILE }} --set deploy.${{ inputs.CONTAINER_NAME }}.tag=${{ inputs.IMAGE_TAG }} --set image.repository=${{ inputs.IMAGE_PATH }} --context 5"
echo "Running: $CMD"
eval "$CMD"