Skip to content

Commit

Permalink
Use GitHub Container Registry to Store Helm Chart (#301)
Browse files Browse the repository at this point in the history
Instead of building and uploading the Helm Chart for the Vault Secrets
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 3.0.0 the Helm chart will only be
available at `ghcr.io/ricoberger/charts/vault-secrets-operator`.
  • Loading branch information
ricoberger authored Jan 19, 2025
1 parent 0522e93 commit 506609f
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 50 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/continuous-delivery.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
defaults:
run:
shell: bash

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down Expand Up @@ -62,3 +63,34 @@ jobs:
tags: |
ghcr.io/${{ github.repository }}:${{ env.TAG }}
ricoberger/vault-secrets-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/vault-secrets-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/vault-secrets-operator --version ${{ env.VERSION }}
helm push ./vault-secrets-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 @@ -14,10 +14,7 @@ The **Vault Secrets Operator** creates Kubernetes secrets from Vault. The idea b
The Vault Secrets Operator can be installed via Helm. A list of all configurable values can be found [here](./charts/README.md). The chart assumes a vault server running at `http://vault:8200`, but can be overidden by specifying `--set vault.address=https://vault.example.com`

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

helm upgrade --install vault-secrets-operator ricoberger/vault-secrets-operator
helm upgrade --install vault-secrets-operator oci://ghcr.io/ricoberger/charts/vault-secrets-operator --version 3.0.0
```

### Prepare Vault
Expand Down
2 changes: 1 addition & 1 deletion charts/vault-secrets-operator/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ maintainers:
- name: Rico Berger
url: https://ricoberger.de
name: vault-secrets-operator
version: 2.7.0
version: 3.0.0

0 comments on commit 506609f

Please sign in to comment.