Skip to content

Commit

Permalink
Use GitHub Container Registry to Store Helm Chart (#44)
Browse files Browse the repository at this point in the history
Instead of building and uploading the Helm Chart for the parca-operator
to the https://github.com/ricoberger/helm-charts repository, we are now
using the GitHub Container Registry to store the Helm chart.

Starting with the new version 1.0.0 the Helm chart will only be
available at ghcr.io/ricoberger/charts/parca-operator.
  • Loading branch information
ricoberger authored Jan 25, 2025
1 parent e8aa125 commit e842e1e
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 50 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/continuous-delivery.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
name: Continuous Delivery

on:
Expand Down Expand Up @@ -53,3 +54,33 @@ jobs:
file: ./Dockerfile
platforms: linux/amd64,linux/arm64/v8
tags: ghcr.io/${{ github.repository_owner }}/parca-operator:${{ env.TAG }}

helm:
name: Helm
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
permissions:
contents: read
packages: write

steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set Version
id: version
run: |
echo VERSION=$(yq -r .version ./charts/parca-operator/Chart.yaml) >> $GITHUB_ENV
- name: Login to GitHub Container Registry
uses: docker/login-action@v3
with:
username: ${{ github.repository_owner }}
password: ${{ secrets.GITHUB_TOKEN }}
registry: ghcr.io

- name: Package and Push Helm Chart
run: |
helm package ./charts/parca-operator --version ${{ env.VERSION }}
helm push ./parca-operator-${{ env.VERSION }}.tgz oci://ghcr.io/${{ github.repository_owner }}/charts
45 changes: 0 additions & 45 deletions .github/workflows/helm.yaml

This file was deleted.

5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ the Parca Operator can also be used to configure the
The Parca Operator can be installed via Helm:

```sh
helm repo add ricoberger https://ricoberger.github.io/helm-charts
helm repo update

helm upgrade --install parca-operator ricoberger/parca-operator
helm upgrade --install parca-operator oci://ghcr.io/ricoberger/charts/parca-operator --version 1.0.0
```

Make sure that you set the following environment variables for the Parca Operator:
Expand Down
3 changes: 2 additions & 1 deletion charts/parca-operator/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
---
apiVersion: v2
name: parca-operator
description: Deploy and Operator Parca
Expand All @@ -15,7 +16,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.2.1
version: 1.0.0

# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to
Expand Down

0 comments on commit e842e1e

Please sign in to comment.