Skip to content

Commit

Permalink
Attempting to host and update helm charts repo index.yaml on github (#…
Browse files Browse the repository at this point in the history
…637)

* update actions to include all steps

* add a small chart change

* update chart readme

* bump version

---------

Co-authored-by: Max Williams <[email protected]>
  • Loading branch information
max-rocket-internet and max-rocket-internet authored Dec 11, 2024
1 parent b9b34cd commit 34bdf61
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 5 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/helm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,26 @@ jobs:
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)
- name: Push Helm Charts to Github Container Registry as OCI packages
shell: bash
run: |
for f in *.tgz ; do
echo "$f"
helm push $f oci://${REGISTRY,,}
done
- name: Generate Helm repo index.yaml
shell: bash
run: |
helm repo index .
- name: Update URLs in index.yaml
uses: mikefarah/[email protected]
with:
cmd: yq eval -i '. |= .entries[][] |= .urls[0] = "oci://" + env(REGISTRY) + "/" + .name + ":" + .version' index.yaml
- name: Commit index.yaml to master branch
uses: EndBug/[email protected]
with:
add: 'index.yaml'
committer_name: GitHub Actions
committer_email: [email protected]
message: "$GITHUB_ACTION is updating index.yaml for $GITHUB_REF"
7 changes: 6 additions & 1 deletion stable/aws-ebs-csi-driver/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ apiVersion: v2
appVersion: 1.16.1
name: aws-ebs-csi-driver
description: A Helm chart for AWS EBS CSI Driver
version: 2.17.1
version: 2.17.2
kubeVersion: ">=1.17.0-0"
home: https://github.com/kubernetes-sigs/aws-ebs-csi-driver
sources:
- https://github.com/deliveryhero/helm-charts/tree/master/stable/aws-ebs-csi-driver
- https://github.com/kubernetes-sigs/aws-ebs-csi-driver
keywords:
- aws
Expand All @@ -14,3 +15,7 @@ keywords:
maintainers:
- name: Kubernetes Authors
url: https://github.com/kubernetes-sigs/aws-ebs-csi-driver/
annotations:
artifacthub.io/links: |
- name: Helm chart source
url: https://github.com/deliveryhero/helm-charts/tree/master/stable/aws-ebs-csi-driver
5 changes: 3 additions & 2 deletions stable/aws-ebs-csi-driver/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# aws-ebs-csi-driver

![Version: 2.17.1](https://img.shields.io/badge/Version-2.17.1-informational?style=flat-square) ![AppVersion: 1.16.1](https://img.shields.io/badge/AppVersion-1.16.1-informational?style=flat-square)
![Version: 2.17.2](https://img.shields.io/badge/Version-2.17.2-informational?style=flat-square) ![AppVersion: 1.16.1](https://img.shields.io/badge/AppVersion-1.16.1-informational?style=flat-square)

A Helm chart for AWS EBS CSI Driver

Expand All @@ -17,7 +17,7 @@ helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/aws-ebs-csi-
To install a specific version of this chart:

```console
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/aws-ebs-csi-driver --version 2.17.1
helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/aws-ebs-csi-driver --version 2.17.2
```

To install the chart with the release name `my-release`:
Expand All @@ -40,6 +40,7 @@ helm install my-release oci://ghcr.io/deliveryhero/helm-charts/aws-ebs-csi-drive

## Source Code

* <https://github.com/deliveryhero/helm-charts/tree/master/stable/aws-ebs-csi-driver>
* <https://github.com/kubernetes-sigs/aws-ebs-csi-driver>

## Requirements
Expand Down

0 comments on commit 34bdf61

Please sign in to comment.