Skip to content

Commit 506609f

Browse files
authored
Use GitHub Container Registry to Store Helm Chart (#301)
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`.
1 parent 0522e93 commit 506609f

File tree

4 files changed

+34
-50
lines changed

4 files changed

+34
-50
lines changed

.github/workflows/continuous-delivery.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ jobs:
1515
defaults:
1616
run:
1717
shell: bash
18+
1819
steps:
1920
- name: Checkout
2021
uses: actions/checkout@v4
@@ -62,3 +63,34 @@ jobs:
6263
tags: |
6364
ghcr.io/${{ github.repository }}:${{ env.TAG }}
6465
ricoberger/vault-secrets-operator:${{ env.TAG }}
66+
67+
helm:
68+
name: Helm
69+
runs-on: ubuntu-latest
70+
if: github.ref == 'refs/heads/main'
71+
permissions:
72+
contents: read
73+
packages: write
74+
75+
steps:
76+
- name: Checkout
77+
uses: actions/checkout@v4
78+
with:
79+
fetch-depth: 0
80+
81+
- name: Set Version
82+
id: version
83+
run: |
84+
echo VERSION=$(yq -r .version ./charts/vault-secrets-operator/Chart.yaml) >> $GITHUB_ENV
85+
86+
- name: Login to GitHub Container Registry
87+
uses: docker/login-action@v3
88+
with:
89+
username: ${{ github.repository_owner }}
90+
password: ${{ secrets.GITHUB_TOKEN }}
91+
registry: ghcr.io
92+
93+
- name: Package and Push Helm Chart
94+
run: |
95+
helm package ./charts/vault-secrets-operator --version ${{ env.VERSION }}
96+
helm push ./vault-secrets-operator-${{ env.VERSION }}.tgz oci://ghcr.io/${{ github.repository_owner }}/charts

.github/workflows/helm.yaml

Lines changed: 0 additions & 45 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ The **Vault Secrets Operator** creates Kubernetes secrets from Vault. The idea b
1414
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`
1515

1616
```sh
17-
helm repo add ricoberger https://ricoberger.github.io/helm-charts
18-
helm repo update
19-
20-
helm upgrade --install vault-secrets-operator ricoberger/vault-secrets-operator
17+
helm upgrade --install vault-secrets-operator oci://ghcr.io/ricoberger/charts/vault-secrets-operator --version 3.0.0
2118
```
2219

2320
### Prepare Vault

charts/vault-secrets-operator/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@ maintainers:
88
- name: Rico Berger
99
url: https://ricoberger.de
1010
name: vault-secrets-operator
11-
version: 2.7.0
11+
version: 3.0.0

0 commit comments

Comments
 (0)