diff --git a/git/README.md b/git/README.md new file mode 100644 index 0000000..5707970 --- /dev/null +++ b/git/README.md @@ -0,0 +1,7 @@ +# git + +Composite actions for Git operations. + +| action | description | +| --- | --- | +| [create_tag](create_tag/README.md) | Creates and pushes a git tag in the current repository | diff --git a/helm/README.md b/helm/README.md new file mode 100644 index 0000000..d0330bd --- /dev/null +++ b/helm/README.md @@ -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 | diff --git a/helm/diff/README.md b/helm/diff/README.md index 2c31e0a..a44f731 100644 --- a/helm/diff/README.md +++ b/helm/diff/README.md @@ -18,6 +18,7 @@ Diff a Helm chart for a deployment in a Kubernetes cluster | `CONTAINER_NAME` |

The container component to update

| `true` | `""` | | `VALUES_FILE` |

The values file to use

| `false` | `./helm/values.yaml` | | `CHART_PATH` |

Path to the Helm chart

| `false` | `./helm` | +| `TAG_KEY` |

Helm --set key for the image tag (e.g. deploy.api.tag)

| `true` | `""` | diff --git a/helm/diff/action.yml b/helm/diff/action.yml index f7925bf..d9b3c47 100644 --- a/helm/diff/action.yml +++ b/helm/diff/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" \ No newline at end of file diff --git a/helm/set_deployment_image/README.md b/helm/set_deployment_image/README.md index 7645281..17b222b 100644 --- a/helm/set_deployment_image/README.md +++ b/helm/set_deployment_image/README.md @@ -18,6 +18,7 @@ Set the image for a deployment in a Kubernetes | `CONTAINER_NAME` |

The container component to update

| `true` | `""` | | `VALUES_FILE` |

The values file to use

| `false` | `./helm/values.yaml` | | `CHART_PATH` |

Path to the Helm chart

| `false` | `./helm` | +| `TAG_KEY` |

Helm --set key for the image tag (e.g. deploy.api.tag)

| `true` | `""` | diff --git a/helm/set_deployment_image/action.yml b/helm/set_deployment_image/action.yml index bc0692d..107162b 100644 --- a/helm/set_deployment_image/action.yml +++ b/helm/set_deployment_image/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" \ No newline at end of file diff --git a/helm/template/README.md b/helm/template/README.md index 0cef610..00591c5 100644 --- a/helm/template/README.md +++ b/helm/template/README.md @@ -18,6 +18,7 @@ Template a Helm chart for a deployment in a Kubernetes cluster | `CONTAINER_NAME` |

The container component to update

| `true` | `""` | | `VALUES_FILE` |

The values file to use

| `false` | `./helm/values.yaml` | | `CHART_PATH` |

Path to the Helm chart

| `false` | `./helm` | +| `TAG_KEY` |

Helm --set key for the image tag (e.g. deploy.api.tag)

| `true` | `""` | diff --git a/helm/template/action.yml b/helm/template/action.yml index fdbef2c..da968fd 100644 --- a/helm/template/action.yml +++ b/helm/template/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" \ No newline at end of file diff --git a/infisical/README.md b/infisical/README.md new file mode 100644 index 0000000..22e4e7a --- /dev/null +++ b/infisical/README.md @@ -0,0 +1,7 @@ +# infisical + +Composite actions for Infisical secret management. + +| action | description | +| --- | --- | +| [fetch-secret](fetch-secret/README.md) | Fetches a single secret value from Infisical using a machine identity token | diff --git a/infra/README.md b/infra/README.md new file mode 100644 index 0000000..8c6496c --- /dev/null +++ b/infra/README.md @@ -0,0 +1,7 @@ +# infra + +Composite actions for infrastructure management. + +| action | description | +| --- | --- | +| [update_version](update_version/README.md) | Updates the service tag in the stat-tackler-infra releases/versions.yaml | diff --git a/kubectl/README.md b/kubectl/README.md new file mode 100644 index 0000000..08710c3 --- /dev/null +++ b/kubectl/README.md @@ -0,0 +1,7 @@ +# kubectl + +Composite actions for kubectl configuration. + +| action | description | +| --- | --- | +| [configure](configure/README.md) | Configure kubectl for use with Kubernetes | diff --git a/test/README.md b/test/README.md new file mode 100644 index 0000000..6d7a569 --- /dev/null +++ b/test/README.md @@ -0,0 +1,7 @@ +# test + +Composite actions for running tests. + +| action | description | +| --- | --- | +| [npm](npm/README.md) | Install dependencies and run npm tests | diff --git a/trivy/README.md b/trivy/README.md new file mode 100644 index 0000000..445fb71 --- /dev/null +++ b/trivy/README.md @@ -0,0 +1,8 @@ +# trivy + +Composite actions for Trivy vulnerability scanning. + +| action | description | +| --- | --- | +| [image_scan](image_scan/README.md) | Scan a container image with Trivy | +| [namespace_scan](namespace_scan/README.md) | Scan a Kubernetes namespace for vulnerabilities |