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
+11 -3
View File
@@ -13,6 +13,12 @@ inputs:
REGISTRY_TOKEN:
description: "Token for OCI registry login"
required: true
CHART_PATH:
description: "Path to the Helm chart"
default: "."
VALUES_FILE:
description: "Path to a values file (optional)"
default: ""
runs:
using: composite
@@ -27,9 +33,11 @@ runs:
- name: Helm Upgrade
shell: sh
run: |
helm dependency update
echo "Running: helm upgrade ${{ inputs.DEPLOYMENT_NAME }} ./ -n ${{ inputs.DEPLOYMENT_NAME }}"
helm upgrade ${{ inputs.DEPLOYMENT_NAME }} ./ -n ${{ inputs.DEPLOYMENT_NAME }}
helm dependency update ${{ inputs.CHART_PATH }}
VALUES_FLAG=""
if [ -n "${{ inputs.VALUES_FILE }}" ]; then VALUES_FLAG="--values ${{ inputs.VALUES_FILE }}"; fi
echo "Running: helm upgrade ${{ inputs.DEPLOYMENT_NAME }} ${{ inputs.CHART_PATH }} -n ${{ inputs.DEPLOYMENT_NAME }} $VALUES_FLAG"
helm upgrade ${{ inputs.DEPLOYMENT_NAME }} ${{ inputs.CHART_PATH }} -n ${{ inputs.DEPLOYMENT_NAME }} $VALUES_FLAG
- name: Remove kubeconfig
if: always()