-
Notifications
You must be signed in to change notification settings - Fork 12
52 lines (49 loc) · 1.26 KB
/
publish-helm.yml
File metadata and controls
52 lines (49 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build and Publish Helm Chart
permissions:
contents: read
on:
release:
types:
- published
push:
branches:
- main
tags:
- v*
paths-ignore:
- 'docs/**'
- '**/*.md'
pull_request:
paths-ignore:
- 'docs/**'
- '**/*.md'
types: [labeled, unlabeled, opened, synchronize, reopened]
jobs:
publish-charts:
runs-on: ubuntu-latest
if: contains(github.event.pull_request.labels.*.name, 'ok-to-chart')
steps:
- name: Check out repository
uses: actions/checkout@v4
- uses: azure/setup-helm@v4.3.0
with:
version: v3.16.2
- name: Login to GHCR
if: github.event_name != 'pull_request'
uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Push Helm Chart to OCI Registry
timeout-minutes: 40
uses: appany/helm-oci-chart-releaser@v0.4.2
with:
name: metal-operator-core
repository: ${{ github.repository_owner }}
tag: 0.1.0
path: dist/chart # Default charts/{name}
registry: ghcr.io
registry_username: ${{ github.actor }}
registry_password: ${{ secrets.GITHUB_TOKEN }}
update_dependencies: 'true'