feat: initial commit — kubectl/configure, infisical/fetch-secret, helm/upgrade actions
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
# Helm Upgrade Deployment Image
|
||||
|
||||
<!-- action-docs-description source="action.yml" -->
|
||||
## Description
|
||||
|
||||
Set the image for a deployment in a Kubernetes
|
||||
<!-- action-docs-description source="action.yml" -->
|
||||
|
||||
<!-- action-docs-inputs source="action.yml" -->
|
||||
## Inputs
|
||||
|
||||
| name | description | required | default |
|
||||
| --- | --- | --- | --- |
|
||||
| `DEPLOYMENT_NAME` | <p>The Kubernetes Deployment to update</p> | `true` | `""` |
|
||||
| `DEPLOYMENT_NAMESPACE` | <p>The Kubernetes namespace of the Deployment</p> | `true` | `""` |
|
||||
| `IMAGE_PATH` | <p>The registry path to the image</p> | `true` | `""` |
|
||||
| `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` |
|
||||
<!-- action-docs-inputs source="action.yml" -->
|
||||
|
||||
<!-- action-docs-runs source="action.yml" -->
|
||||
## Runs
|
||||
|
||||
This action is a `composite` action.
|
||||
<!-- action-docs-runs source="action.yml" -->
|
||||
@@ -0,0 +1,31 @@
|
||||
name: Helm Upgrade Deployment Image
|
||||
description: Set the image for a deployment in a Kubernetes
|
||||
inputs:
|
||||
DEPLOYMENT_NAME:
|
||||
description: "The Kubernetes Deployment to update"
|
||||
required: true
|
||||
DEPLOYMENT_NAMESPACE:
|
||||
description: "The Kubernetes namespace of the Deployment"
|
||||
required: true
|
||||
IMAGE_PATH:
|
||||
description: "The registry path to the image"
|
||||
required: true
|
||||
IMAGE_TAG:
|
||||
description: "The image tag to deploy"
|
||||
required: true
|
||||
CONTAINER_NAME:
|
||||
description: "The container component to update"
|
||||
required: true
|
||||
VALUES_FILE:
|
||||
description: "The values file to use"
|
||||
default: "./helm/values.yaml"
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Helm Set Image
|
||||
shell: sh
|
||||
run: |
|
||||
CMD="helm 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 }}"
|
||||
echo "Running: $CMD"
|
||||
eval "$CMD"
|
||||
Reference in New Issue
Block a user