normalize paths
This commit is contained in:
@@ -15,8 +15,8 @@ Login to an OCI registry, update chart dependencies, and run helm upgrade for th
|
|||||||
| `REGISTRY` | <p>OCI registry hostname for helm dependency login</p> | `true` | `""` |
|
| `REGISTRY` | <p>OCI registry hostname for helm dependency login</p> | `true` | `""` |
|
||||||
| `REGISTRY_USERNAME` | <p>Username for OCI registry login</p> | `true` | `""` |
|
| `REGISTRY_USERNAME` | <p>Username for OCI registry login</p> | `true` | `""` |
|
||||||
| `REGISTRY_TOKEN` | <p>Token for OCI registry login</p> | `true` | `""` |
|
| `REGISTRY_TOKEN` | <p>Token for OCI registry login</p> | `true` | `""` |
|
||||||
| `CHART_PATH` | <p>Path to the Helm chart</p> | `false` | `.` |
|
| `CHART_PATH` | <p>Path to the Helm chart</p> | `false` | `./helm` |
|
||||||
| `VALUES_FILE` | <p>Path to a values file (optional)</p> | `false` | `""` |
|
| `VALUES_FILE` | <p>The values file to use</p> | `false` | `./helm/values.yaml` |
|
||||||
<!-- action-docs-inputs source="action.yml" -->
|
<!-- action-docs-inputs source="action.yml" -->
|
||||||
|
|
||||||
<!-- action-docs-runs source="action.yml" -->
|
<!-- action-docs-runs source="action.yml" -->
|
||||||
|
|||||||
@@ -15,10 +15,10 @@ inputs:
|
|||||||
required: true
|
required: true
|
||||||
CHART_PATH:
|
CHART_PATH:
|
||||||
description: "Path to the Helm chart"
|
description: "Path to the Helm chart"
|
||||||
default: "."
|
default: "./helm"
|
||||||
VALUES_FILE:
|
VALUES_FILE:
|
||||||
description: "Path to a values file (optional)"
|
description: "The values file to use"
|
||||||
default: ""
|
default: "./helm/values.yaml"
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
@@ -34,10 +34,8 @@ runs:
|
|||||||
shell: sh
|
shell: sh
|
||||||
run: |
|
run: |
|
||||||
helm dependency update ${{ inputs.CHART_PATH }}
|
helm dependency update ${{ inputs.CHART_PATH }}
|
||||||
VALUES_FLAG=""
|
echo "Running: helm upgrade ${{ inputs.DEPLOYMENT_NAME }} ${{ inputs.CHART_PATH }} -n ${{ inputs.DEPLOYMENT_NAME }} --values ${{ inputs.VALUES_FILE }}"
|
||||||
if [ -n "${{ inputs.VALUES_FILE }}" ]; then VALUES_FLAG="--values ${{ inputs.VALUES_FILE }}"; fi
|
helm upgrade ${{ inputs.DEPLOYMENT_NAME }} ${{ inputs.CHART_PATH }} -n ${{ inputs.DEPLOYMENT_NAME }} --values ${{ inputs.VALUES_FILE }}
|
||||||
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
|
- name: Remove kubeconfig
|
||||||
if: always()
|
if: always()
|
||||||
|
|||||||
Reference in New Issue
Block a user