Skip to content

Commit 8aa5221

Browse files
committed
Add publish helm workflow
1 parent 5417b9e commit 8aa5221

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed

.github/workflows/publish-helm.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Build and Publish Helm Chart
2+
3+
permissions:
4+
contents: read
5+
6+
on:
7+
release:
8+
types:
9+
- published
10+
push:
11+
branches:
12+
- main
13+
tags:
14+
- v*
15+
paths-ignore:
16+
- 'docs/**'
17+
- '**/*.md'
18+
pull_request:
19+
paths-ignore:
20+
- 'docs/**'
21+
- '**/*.md'
22+
types: [labeled, unlabeled, opened, synchronize, reopened]
23+
24+
jobs:
25+
publish-charts:
26+
runs-on: ubuntu-latest
27+
if: contains(github.event.pull_request.labels.*.name, 'ok-to-chart')
28+
steps:
29+
- name: Check out repository
30+
uses: actions/checkout@v4
31+
- name: Push Helm Chart to OCI Registry
32+
uses: appany/helm-oci-chart-releaser@v0.4.2
33+
with:
34+
name: metal-operator-core
35+
repository: ${{ github.repository_owner }}
36+
tag: 0.1.0
37+
path: dist/chart # Default charts/{name}
38+
registry: ghcr.io
39+
registry_username: ${{ github.actor }}
40+
registry_password: ${{ secrets.GITHUB_TOKEN }}
41+
update_dependencies: 'true'

0 commit comments

Comments
 (0)