Skip to content

Commit 8c83b24

Browse files
Supuderekbit
authored andcommitted
OCI image based helm chart build workflow added
1 parent 2eef3bd commit 8c83b24

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/helm-release.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
- v*
7+
tags:
8+
- v*
9+
pull_request:
10+
env:
11+
HELM_REGISTRY: ghcr.io
12+
CHART_DIR: deploy/chart/local-path-provisioner
13+
jobs:
14+
build_push_helm_chart:
15+
name: Build and Push Chart
16+
runs-on: ubuntu-latest
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Log in to the Container registry
22+
uses: docker/login-action@v3
23+
with:
24+
registry: ${{ env.HELM_REGISTRY }}
25+
username: ${{ github.actor }}
26+
password: ${{ secrets.GITHUB_TOKEN }}
27+
28+
- name: Publish OCI helm chart
29+
run: |
30+
helm package ./${{ env.CHART_DIR }} --destination ./chart
31+
helm push ./chart/*.tgz oci://${{ env.HELM_REGISTRY }}/${{ github.repository_owner }}/${{ github.event.repository.name }}/charts

0 commit comments

Comments
 (0)