add github workflow to package helm chart

Signed-off-by: Pascal Sthamer <10992664+P4sca1@users.noreply.github.com>
This commit is contained in:
Pascal Sthamer
2025-01-02 09:32:08 +01:00
parent 2980fba8c7
commit 577462b420
3 changed files with 44 additions and 4 deletions
@@ -0,0 +1,41 @@
name: helm
on:
workflow_dispatch:
push:
branches:
- main
paths:
- "charts/**"
permissions:
contents: read
packages: write
jobs:
main:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install apt dependencies
run: |
curl https://baltocdn.com/helm/signing.asc | gpg --dearmor | sudo tee /usr/share/keyrings/helm.gpg > /dev/null
sudo apt-get install apt-transport-https -y --no-install-recommends
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/helm.gpg] https://baltocdn.com/helm/stable/debian/ all main" | sudo tee /etc/apt/sources.list.d/helm-stable-debian.list
sudo apt-get update
sudo apt-get install helm -y --no-install-recommends
- name: Update helm dependencies
run: helm dependency update ./charts/shuffle
- name: Package Helm chart
run: helm package ./charts/shuffle --destination ./charts
- name: Login to OCI registry (ghcr.io)
run: helm registry login ghcr.io --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }}
- name: Push helm chart
run: helm push ./charts/shuffle-*.tgz oci://ghcr.io/shuffle/shuffle/charts
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v2
name: shuffle name: shuffle
description: A Helm chart for deploying Shuffle on Kubernetes description: A Helm chart for deploying Shuffle on Kubernetes
type: application type: application
version: 0.0.0 version: 0.1.0
appVersion: nightly appVersion: nightly
dependencies: dependencies:
- name: common - name: common
+2 -3
View File
@@ -17,8 +17,8 @@ SPDX-License-Identifier: APACHE-2.0
## Usage ## Usage
```sh ```sh
# Install (the shuffle namespace is hardcoded into the shuffle source code) # Install shuffle via helm (the shuffle namespace is hardcoded into the shuffle source code)
helm install shuffle oci://TODO --namespace shuffle --create-namespace helm install shuffle oci://ghcr.io/shuffle/shuffle/charts/shuffle --namespace shuffle --create-namespace
``` ```
## Secret Parameters ## Secret Parameters
@@ -581,4 +581,3 @@ SHUFFLE_ENCRYPTION_MODIFIER: "MyShuffleEncryptionModifier"
| `vault.secrets` | A list of VaultSecrets to create | `[]` | | `vault.secrets` | A list of VaultSecrets to create | `[]` |
### Other Parameters ### Other Parameters