forked from ferriskey/ferriskey
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (37 loc) · 1.14 KB
/
helm.yaml
File metadata and controls
45 lines (37 loc) · 1.14 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
name: helm
on:
push:
tags:
- ferriskey-*.*.*
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
packages: write
jobs:
helm:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v5
- name: set up helm
uses: azure/setup-helm@v4
- name: log-in to ghcr
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ghcr.io --username ferriskey --password-stdin
- name: check version
id: version
run: |
tag="${{ github.ref_name }}"
tag_version="${tag//ferriskey-/}"
chart_version="$(yq .version charts/ferriskey/Chart.yaml)"
if [ "$tag_version" != "$chart_version" ]; then
echo "Tag version `$tag_version` does not match chart version `$chart_version`"
exit 1
fi
echo "version=$tag_version" >> "$GITHUB_OUTPUT"
- name: push chart
run: |
helm package charts/ferriskey
helm push ferriskey-${{ steps.version.outputs.version }}.tgz oci://ghcr.io/ferriskey/charts