Skip to content

Commit 5e3aaf3

Browse files
committed
publish helm chart
1 parent 79327b1 commit 5e3aaf3

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

.github/workflows/helm-publish.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Publish Helm Chart
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'helm-chart/**'
9+
release:
10+
types: [published]
11+
12+
jobs:
13+
publish-helm-chart:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
packages: write
18+
steps:
19+
- name: Checkout repository
20+
uses: actions/checkout@v4
21+
22+
- name: Install Helm
23+
uses: azure/setup-helm@v4
24+
with:
25+
version: '3.13.0'
26+
27+
- name: Log in to the Container registry
28+
uses: docker/login-action@v3
29+
with:
30+
registry: ghcr.io
31+
username: ${{ github.actor }}
32+
password: ${{ secrets.GITHUB_TOKEN }}
33+
34+
- name: Package Helm chart
35+
run: |
36+
helm package helm/stac-semantic-search --destination ./chart-packages
37+
38+
- name: Push Helm chart to GHCR
39+
run: |
40+
helm push ./chart-packages/*.tgz oci://ghcr.io/developmentseed/stac-semantic-search/helm-chart
41+
42+
- name: List packaged charts
43+
run: |
44+
ls -la ./chart-packages/

0 commit comments

Comments
 (0)