Skip to content

Commit fa59186

Browse files
committed
Add publish helm workflow
1 parent b4d93f4 commit fa59186

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/publish-helm.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
timeout-minutes: 40
33+
uses: appany/helm-oci-chart-releaser@v0.4.2
34+
with:
35+
name: metal-operator-core
36+
repository: ${{ github.repository_owner }}
37+
tag: 0.1.0
38+
path: dist/chart # Default charts/{name}
39+
registry: ghcr.io
40+
registry_username: ${{ github.actor }}
41+
registry_password: ${{ secrets.GITHUB_TOKEN }}
42+
update_dependencies: 'true'

0 commit comments

Comments
 (0)