-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (46 loc) · 1.48 KB
/
helm.yaml
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
58
---
name: helm
on:
- push
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: set up helm
uses: azure/setup-helm@v4
with:
version: v3.13.0
- uses: actions/setup-python@v5
with:
python-version: 3.7
- name: set up chart-testing
uses: helm/[email protected]
- name: run chart-testing (lint)
run: ct lint --all
- name: create kind cluster
uses: helm/[email protected]
- name: run chart-testing (install)
run: ct install --all
release:
runs-on: ubuntu-latest
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
steps:
- name: checkout
uses: actions/checkout@v4
- name: set up helm
uses: azure/setup-helm@v4
with:
version: v3.13.0
- name: login to github container registry using helm
run: |
echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io/snapp-incubator/soteria --username ${{ github.repository_owner }} --password-stdin
- name: package soteria helm chart
run: |
version=${{ github.ref_name }}
helm package --version "${version##v}" --app-version "${version}" ./charts/soteria
- name: publish soteria chart to github container registry
run: |
version=${{ github.ref_name }}
helm push "soteria-${version##v}".tgz oci://ghcr.io/snapp-incubator/soteria-chart