Skip to content

Commit

Permalink
feat: add support for OCI helm chart
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovic Ortega <[email protected]>
  • Loading branch information
M0NsTeRRR committed Nov 22, 2024
1 parent 3be9976 commit 9bc071c
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 3 deletions.
21 changes: 20 additions & 1 deletion .github/workflows/release-helm-charts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,23 @@ jobs:
with:
config: "./cr.yaml"
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Push charts to GHCR
run: |
shopt -s nullglob
for pkg in .cr-release-packages/*; do
if [ -z "${pkg:-}" ]; then
break
fi
lowercase=$(echo "${GITHUB_REPOSITORY}" | tr '[:upper:]' '[:lower:]')
echo "Pushing package - ${pkg} to ghcr.io repository - ${lowercase}"
helm push "${pkg}" "oci://ghcr.io/${lowercase}"
done
2 changes: 1 addition & 1 deletion charts/stirling-pdf/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ maintainers:
name: stirling-pdf-chart
sources:
- https://github.com/Stirling-Tools/Stirling-PDF-chart
version: 1.2.0
version: 1.3.0
9 changes: 8 additions & 1 deletion charts/stirling-pdf/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# stirling-pdf-chart

![Version: 1.2.0](https://img.shields.io/badge/Version-1.2.0-informational?style=flat-square) ![AppVersion: 0.33.1](https://img.shields.io/badge/AppVersion-0.33.1-informational?style=flat-square)
![Version: 1.3.0](https://img.shields.io/badge/Version-1.3.0-informational?style=flat-square) ![AppVersion: 0.33.1](https://img.shields.io/badge/AppVersion-0.33.1-informational?style=flat-square)

locally hosted web application that allows you to perform various operations on PDF files

Expand All @@ -18,6 +18,13 @@ locally hosted web application that allows you to perform various operations on

## Chart Repo

### OCI
```console
helm install stirling-pdf oci://ghcr.io/stirling-tools/stirling-pdf-chart/stirling-pdf
```

### Helm repository

Add the following repo to use the chart:

```console
Expand Down
7 changes: 7 additions & 0 deletions charts/stirling-pdf/README.md.gotmpl
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@

## Chart Repo

### OCI
```console
helm install stirling-pdf oci://ghcr.io/stirling-tools/stirling-pdf-chart/stirling-pdf
```

### Helm repository

Add the following repo to use the chart:

```console
Expand Down

0 comments on commit 9bc071c

Please sign in to comment.