Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move chart hosting to GHCR #612

Merged
merged 2 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 53 additions & 0 deletions .github/workflows/helm-publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: Helm Publish

on:
push:
branches:
- master
paths:
- 'stable/**'
workflow_dispatch:

env:
CHARTS_PATH: stable
REGISTRY: "ghcr.io/${{ github.repository }}"

jobs:
helm:
permissions:
contents: read
packages: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Helm
uses: azure/setup-helm@v4
with:
version: v3.12.3 # Lock version for now, helm v3.13.0 contains bugs related to oci that will be fixed in v3.13.1. https://github.com/helm/helm/issues/12423
- name: Package Helm Charts
shell: bash
run: |
find ${CHARTS_PATH} -type f -name 'Chart.yaml' | sed -r 's|/[^/]+$||' | sort | uniq | xargs --verbose -L 1 helm dep up
for d in ${CHARTS_PATH}/*; do
if [[ ! -f "${d}/Chart.yaml" ]]; then
echo "${d}/Chart.yaml not found. Skipping."
continue
fi
echo "$d"
helm package "$d" -u
done
echo "Packing done"
- name: Login to GitHub Container Registry
shell: bash
run: echo "${GITHUB_TOKEN}" | helm registry login ${REGISTRY} --username ${GITHUB_ACTOR} --password-stdin
env:
REGISTRY: "ghcr.io/${{ github.repository }}"
GITHUB_TOKEN: ${{ github.token }}
- name: Push Helm Charts to Github Container Registry (OCI)
shell: bash
run: |
for f in *.tgz ; do
echo "$f"
helm push $f oci://${REGISTRY,,}
done
27 changes: 0 additions & 27 deletions .github/workflows/push-chart.yaml

This file was deleted.

6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@
## TLDR

```console
helm repo add deliveryhero https://charts.deliveryhero.io/
helm search repo deliveryhero
helm install my-release deliveryhero/<chart>
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/<chart>
```

[![adding deliveryhero chart repo](img/add-repo.gif)](#)

## Chart list

[![Artifact HUB](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/deliveryhero)](https://artifacthub.io/packages/search?repo=deliveryhero)
Expand Down
14 changes: 7 additions & 7 deletions ci/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -9,34 +9,34 @@

## How to install this chart

Add Delivery Hero public chart repo:
A simple install with default values:

```console
helm repo add deliveryhero https://charts.deliveryhero.io/
helm install oci://ghcr.io/deliveryhero/helm-charts/{{ template "chart.name" . }}
```

A simple install with default values:
To install a specific version of this chart:

```console
helm install deliveryhero/{{ template "chart.name" . }}
helm install oci://ghcr.io/deliveryhero/helm-charts/{{ template "chart.name" . }} --version <version>
```

To install the chart with the release name `my-release`:

```console
helm install my-release deliveryhero/{{ template "chart.name" . }}
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/{{ template "chart.name" . }}
```

To install with some set values:

```console
helm install my-release deliveryhero/{{ template "chart.name" . }} --set values_key1=value1 --set values_key2=value2
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/{{ template "chart.name" . }} --set values_key1=value1 --set values_key2=value2
```

To install with custom values file:

```console
helm install my-release deliveryhero/{{ template "chart.name" . }} -f values.yaml
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/{{ template "chart.name" . }} -f values.yaml
```

{{ template "chart.sourcesSection" . }}
Expand Down
Binary file removed img/add-repo.gif
Binary file not shown.
14 changes: 7 additions & 7 deletions stable/aws-ebs-csi-driver/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,34 @@ A Helm chart for AWS EBS CSI Driver

## How to install this chart

Add Delivery Hero public chart repo:
A simple install with default values:

```console
helm repo add deliveryhero https://charts.deliveryhero.io/
helm install oci://ghcr.io/deliveryhero/helm-charts/aws-ebs-csi-driver
```

A simple install with default values:
To install a specific version of this chart:

```console
helm install deliveryhero/aws-ebs-csi-driver
helm install oci://ghcr.io/deliveryhero/helm-charts/aws-ebs-csi-driver --version <version>
```

To install the chart with the release name `my-release`:

```console
helm install my-release deliveryhero/aws-ebs-csi-driver
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/aws-ebs-csi-driver
```

To install with some set values:

```console
helm install my-release deliveryhero/aws-ebs-csi-driver --set values_key1=value1 --set values_key2=value2
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/aws-ebs-csi-driver --set values_key1=value1 --set values_key2=value2
```

To install with custom values file:

```console
helm install my-release deliveryhero/aws-ebs-csi-driver -f values.yaml
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/aws-ebs-csi-driver -f values.yaml
```

## Source Code
Expand Down
14 changes: 7 additions & 7 deletions stable/aws-s3-proxy/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,34 +10,34 @@ See here for configuration via environment variables: https://github.com/pottava

## How to install this chart

Add Delivery Hero public chart repo:
A simple install with default values:

```console
helm repo add deliveryhero https://charts.deliveryhero.io/
helm install oci://ghcr.io/deliveryhero/helm-charts/aws-s3-proxy
```

A simple install with default values:
To install a specific version of this chart:

```console
helm install deliveryhero/aws-s3-proxy
helm install oci://ghcr.io/deliveryhero/helm-charts/aws-s3-proxy --version <version>
```

To install the chart with the release name `my-release`:

```console
helm install my-release deliveryhero/aws-s3-proxy
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/aws-s3-proxy
```

To install with some set values:

```console
helm install my-release deliveryhero/aws-s3-proxy --set values_key1=value1 --set values_key2=value2
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/aws-s3-proxy --set values_key1=value1 --set values_key2=value2
```

To install with custom values file:

```console
helm install my-release deliveryhero/aws-s3-proxy -f values.yaml
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/aws-s3-proxy -f values.yaml
```

## Values
Expand Down
14 changes: 7 additions & 7 deletions stable/aws-service-events-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,34 +11,34 @@ This helm chart exports aws service events to prometheus via aws SQS queue, this

## How to install this chart

Add Delivery Hero public chart repo:
A simple install with default values:

```console
helm repo add deliveryhero https://charts.deliveryhero.io/
helm install oci://ghcr.io/deliveryhero/helm-charts/aws-service-events-exporter
```

A simple install with default values:
To install a specific version of this chart:

```console
helm install deliveryhero/aws-service-events-exporter
helm install oci://ghcr.io/deliveryhero/helm-charts/aws-service-events-exporter --version <version>
```

To install the chart with the release name `my-release`:

```console
helm install my-release deliveryhero/aws-service-events-exporter
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/aws-service-events-exporter
```

To install with some set values:

```console
helm install my-release deliveryhero/aws-service-events-exporter --set values_key1=value1 --set values_key2=value2
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/aws-service-events-exporter --set values_key1=value1 --set values_key2=value2
```

To install with custom values file:

```console
helm install my-release deliveryhero/aws-service-events-exporter -f values.yaml
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/aws-service-events-exporter -f values.yaml
```

## Source Code
Expand Down
14 changes: 7 additions & 7 deletions stable/aws-service-quotas-exporter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,34 @@ This exporter exports AWS service quotas and usage as Prometheus metrics

## How to install this chart

Add Delivery Hero public chart repo:
A simple install with default values:

```console
helm repo add deliveryhero https://charts.deliveryhero.io/
helm install oci://ghcr.io/deliveryhero/helm-charts/aws-service-quotas-exporter
```

A simple install with default values:
To install a specific version of this chart:

```console
helm install deliveryhero/aws-service-quotas-exporter
helm install oci://ghcr.io/deliveryhero/helm-charts/aws-service-quotas-exporter --version <version>
```

To install the chart with the release name `my-release`:

```console
helm install my-release deliveryhero/aws-service-quotas-exporter
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/aws-service-quotas-exporter
```

To install with some set values:

```console
helm install my-release deliveryhero/aws-service-quotas-exporter --set values_key1=value1 --set values_key2=value2
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/aws-service-quotas-exporter --set values_key1=value1 --set values_key2=value2
```

To install with custom values file:

```console
helm install my-release deliveryhero/aws-service-quotas-exporter -f values.yaml
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/aws-service-quotas-exporter -f values.yaml
```

## Source Code
Expand Down
14 changes: 7 additions & 7 deletions stable/aws-storage-class/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,34 @@ Creates a StorageClass. From here: https://github.com/kubernetes/kubernetes/blob

## How to install this chart

Add Delivery Hero public chart repo:
A simple install with default values:

```console
helm repo add deliveryhero https://charts.deliveryhero.io/
helm install oci://ghcr.io/deliveryhero/helm-charts/aws-storage-class
```

A simple install with default values:
To install a specific version of this chart:

```console
helm install deliveryhero/aws-storage-class
helm install oci://ghcr.io/deliveryhero/helm-charts/aws-storage-class --version <version>
```

To install the chart with the release name `my-release`:

```console
helm install my-release deliveryhero/aws-storage-class
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/aws-storage-class
```

To install with some set values:

```console
helm install my-release deliveryhero/aws-storage-class --set values_key1=value1 --set values_key2=value2
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/aws-storage-class --set values_key1=value1 --set values_key2=value2
```

To install with custom values file:

```console
helm install my-release deliveryhero/aws-storage-class -f values.yaml
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/aws-storage-class -f values.yaml
```

## Values
Expand Down
14 changes: 7 additions & 7 deletions stable/backstage-mono/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,34 +8,34 @@ A Helm chart for simple backstage deployment. This chart deploys a single pod fo

## How to install this chart

Add Delivery Hero public chart repo:
A simple install with default values:

```console
helm repo add deliveryhero https://charts.deliveryhero.io/
helm install oci://ghcr.io/deliveryhero/helm-charts/backstage-mono
```

A simple install with default values:
To install a specific version of this chart:

```console
helm install deliveryhero/backstage-mono
helm install oci://ghcr.io/deliveryhero/helm-charts/backstage-mono --version <version>
```

To install the chart with the release name `my-release`:

```console
helm install my-release deliveryhero/backstage-mono
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/backstage-mono
```

To install with some set values:

```console
helm install my-release deliveryhero/backstage-mono --set values_key1=value1 --set values_key2=value2
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/backstage-mono --set values_key1=value1 --set values_key2=value2
```

To install with custom values file:

```console
helm install my-release deliveryhero/backstage-mono -f values.yaml
helm install my-release oci://ghcr.io/deliveryhero/helm-charts/backstage-mono -f values.yaml
```

## Values
Expand Down
Loading
Loading