feat: initial commit — kubectl/configure, infisical/fetch-secret, helm/upgrade actions
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
# Helm Upgrade
|
||||
|
||||
<!-- action-docs-description source="action.yml" -->
|
||||
## Description
|
||||
|
||||
Login to an OCI registry, update chart dependencies, and run helm upgrade for the chart in the current directory
|
||||
<!-- action-docs-description source="action.yml" -->
|
||||
|
||||
<!-- action-docs-inputs source="action.yml" -->
|
||||
## Inputs
|
||||
|
||||
| name | description | required | default |
|
||||
| --- | --- | --- | --- |
|
||||
| `DEPLOYMENT_NAME` | <p>The Helm release name and target namespace</p> | `true` | `""` |
|
||||
| `REGISTRY` | <p>OCI registry hostname for helm dependency login</p> | `true` | `""` |
|
||||
| `REGISTRY_USERNAME` | <p>Username for OCI registry login</p> | `true` | `""` |
|
||||
| `REGISTRY_TOKEN` | <p>Token for OCI registry login</p> | `true` | `""` |
|
||||
<!-- 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,32 @@
|
||||
name: Helm Upgrade
|
||||
description: Login to an OCI registry, update chart dependencies, and run helm upgrade for the chart in the current directory
|
||||
inputs:
|
||||
DEPLOYMENT_NAME:
|
||||
description: "The Helm release name and target namespace"
|
||||
required: true
|
||||
REGISTRY:
|
||||
description: "OCI registry hostname for helm dependency login"
|
||||
required: true
|
||||
REGISTRY_USERNAME:
|
||||
description: "Username for OCI registry login"
|
||||
required: true
|
||||
REGISTRY_TOKEN:
|
||||
description: "Token for OCI registry login"
|
||||
required: true
|
||||
|
||||
runs:
|
||||
using: composite
|
||||
steps:
|
||||
- name: Helm OCI Login
|
||||
shell: sh
|
||||
run: |
|
||||
echo "${{ inputs.REGISTRY_TOKEN }}" | helm registry login ${{ inputs.REGISTRY }} \
|
||||
--username ${{ inputs.REGISTRY_USERNAME }} \
|
||||
--password-stdin
|
||||
|
||||
- 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 }}
|
||||
Reference in New Issue
Block a user