Skip to content

Commit 097c91b

Browse files
authored
Publish the Helm chart to the GitHub Container Registry (#225)
1 parent 14458c4 commit 097c91b

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# from https://github.com/wkbrd/docker-registry.helm/blob/main/.github/workflows/helm_release.yaml
2+
# Apache 2 License
3+
4+
name: Release Charts
5+
env:
6+
HELM_VERSION_TO_INSTALL: 3.14.0
7+
GCR_IMAGE: ghcr.io/${{ github.repository_owner }}
8+
9+
on:
10+
workflow_dispatch:
11+
12+
jobs:
13+
release:
14+
permissions:
15+
contents: write
16+
packages: write
17+
runs-on: ubuntu-latest
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
24+
- name: install helm
25+
uses: Azure/setup-helm@v4.2.0
26+
with:
27+
# Version of helm
28+
version: ${{ env.HELM_VERSION_TO_INSTALL }} # default is latest
29+
30+
- name: publish to oci registry
31+
run: |
32+
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io --username ${{ github.repository_owner }} --password-stdin
33+
helm package "${{ github.workspace }}/charts/questdb/"
34+
package=`ls -t questdb-*.tgz | head -n 1`
35+
helm push "${package}" oci://${{ env.GCR_IMAGE }}

0 commit comments

Comments
 (0)