add deployment tag path and reademes
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
# helm
|
||||
|
||||
Composite actions for managing Helm chart deployments.
|
||||
|
||||
| action | description |
|
||||
| --- | --- |
|
||||
| [diff](diff/README.md) | Diff a Helm chart for a deployment in a Kubernetes cluster |
|
||||
| [set_deployment_image](set_deployment_image/README.md) | Set the image for a deployment in a Kubernetes cluster |
|
||||
| [template](template/README.md) | Template a Helm chart for a deployment in a Kubernetes cluster |
|
||||
| [upgrade](upgrade/README.md) | Login to an OCI registry, update chart dependencies, and run helm upgrade |
|
||||
@@ -18,6 +18,7 @@ Diff a Helm chart for a deployment in a Kubernetes cluster
|
||||
| `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` |
|
||||
| `TAG_KEY` | <p>Helm --set key for the image tag (e.g. deploy.api.tag)</p> | `true` | `""` |
|
||||
<!-- action-docs-inputs source="action.yml" -->
|
||||
|
||||
<!-- action-docs-runs source="action.yml" -->
|
||||
|
||||
@@ -22,6 +22,9 @@ inputs:
|
||||
CHART_PATH:
|
||||
description: "Path to the Helm chart"
|
||||
default: "./helm"
|
||||
TAG_KEY:
|
||||
description: "Helm --set key for the image tag (e.g. deploy.api.tag)"
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
@@ -33,6 +36,6 @@ runs:
|
||||
- name: Helm Diff
|
||||
shell: sh
|
||||
run: |
|
||||
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"
|
||||
CMD="helm diff upgrade ${{ inputs.DEPLOYMENT_NAME }} ${{ inputs.CHART_PATH }} -n ${{ inputs.DEPLOYMENT_NAMESPACE }} --values ${{ inputs.VALUES_FILE }} --set ${TAG_KEY}=${{ inputs.IMAGE_TAG }} --set image.repository=${{ inputs.IMAGE_PATH }} --context 5"
|
||||
echo "Running: $CMD"
|
||||
eval "$CMD"
|
||||
@@ -18,6 +18,7 @@ Set the image for a deployment in a Kubernetes
|
||||
| `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` |
|
||||
| `TAG_KEY` | <p>Helm --set key for the image tag (e.g. deploy.api.tag)</p> | `true` | `""` |
|
||||
<!-- action-docs-inputs source="action.yml" -->
|
||||
|
||||
<!-- action-docs-runs source="action.yml" -->
|
||||
|
||||
@@ -22,6 +22,9 @@ inputs:
|
||||
CHART_PATH:
|
||||
description: "Path to the Helm chart"
|
||||
default: "./helm"
|
||||
TAG_KEY:
|
||||
description: "Helm --set key for the image tag (e.g. deploy.api.tag)"
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
@@ -29,6 +32,6 @@ runs:
|
||||
- name: Helm Set Image
|
||||
shell: sh
|
||||
run: |
|
||||
CMD="helm 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 }}"
|
||||
CMD="helm upgrade ${{ inputs.DEPLOYMENT_NAME }} ${{ inputs.CHART_PATH }} -n ${{ inputs.DEPLOYMENT_NAMESPACE }} --values ${{ inputs.VALUES_FILE }} --set ${TAG_KEY}=${{ inputs.IMAGE_TAG }} --set image.repository=${{ inputs.IMAGE_PATH }}"
|
||||
echo "Running: $CMD"
|
||||
eval "$CMD"
|
||||
@@ -18,6 +18,7 @@ Template a Helm chart for a deployment in a Kubernetes cluster
|
||||
| `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` |
|
||||
| `TAG_KEY` | <p>Helm --set key for the image tag (e.g. deploy.api.tag)</p> | `true` | `""` |
|
||||
<!-- action-docs-inputs source="action.yml" -->
|
||||
|
||||
<!-- action-docs-runs source="action.yml" -->
|
||||
|
||||
@@ -22,6 +22,9 @@ inputs:
|
||||
CHART_PATH:
|
||||
description: "Path to the Helm chart"
|
||||
default: "./helm"
|
||||
TAG_KEY:
|
||||
description: "Helm --set key for the image tag (e.g. deploy.api.tag)"
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
@@ -29,6 +32,6 @@ runs:
|
||||
- name: Helm Template
|
||||
shell: sh
|
||||
run: |
|
||||
CMD="helm template ${{ 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 }}"
|
||||
CMD="helm template ${{ inputs.DEPLOYMENT_NAME }} ${{ inputs.CHART_PATH }} -n ${{ inputs.DEPLOYMENT_NAMESPACE }} --values ${{ inputs.VALUES_FILE }} --set ${TAG_KEY}=${{ inputs.IMAGE_TAG }} --set image.repository=${{ inputs.IMAGE_PATH }}"
|
||||
echo "Running: $CMD"
|
||||
eval "$CMD"
|
||||
Reference in New Issue
Block a user