-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (51 loc) · 1.76 KB
/
release.yml
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
53
54
55
56
57
name: Release Charts
on:
workflow_dispatch: {}
pull_request:
types:
- closed
branches:
- main
jobs:
release:
if: >
${{
(
(github.event.pull_request.merged == true) &&
(contains(github.event.pull_request.labels.*.name, 'release'))
) ||
(
github.event.workflow_dispatch != null
)
}}
permissions:
contents: write # to push chart release and create a release (helm/chart-releaser-action)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
- name: Set up Helm
uses: azure/setup-helm@v3.5
with:
version: v3.12.0
- name: Add dependency chart repos
run: |
helm repo add node-feature-discovery https://kubernetes-sigs.github.io/node-feature-discovery/charts
helm repo add gpu-feature-discovery https://nvidia.github.io/gpu-feature-discovery
helm repo add prometheus https://prometheus-community.github.io/helm-charts
helm repo add dcgm-exporter https://nvidia.github.io/dcgm-exporter/helm-charts
helm repo add nvidia-k8s-device-plugin https://nvidia.github.io/k8s-device-plugin
helm repo add longhorn https://charts.longhorn.io
helm repo add zot https://zotregistry.dev/helm-charts
helm repo add harbor https://helm.goharbor.io
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_GENERATE_RELEASE_NOTES: true