Repository navigation
74 lines (63 loc) · 1.97 KB
/
Copy pathrelease.yaml
File metadata and controls
74 lines (63 loc) · 1.97 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: Release Charts
permissions: {}
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
on:
push:
branches:
- master
jobs:
release:
permissions:
contents: write # chart-releaser: GitHub Releases + gh-pages
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v4
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@v4
with:
version: v4.1.3
- name: Cache Helm repository index
uses: actions/cache@v4
id: helm-repo-cache
with:
path: |
~/.cache/helm
~/.config/helm
key: helm-repo-${{ runner.os }}-${{ hashFiles('charts/**/Chart.yaml', 'charts/**/Chart.lock', '.github/workflows/release.yaml') }}
restore-keys: |
helm-repo-${{ runner.os }}-
- name: Configure Helm chart repos
env:
CACHE_HIT: ${{ steps.helm-repo-cache.outputs.cache-hit }}
run: |
if [ "$CACHE_HIT" != "true" ]; then
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm repo update
fi
- name: Build chart dependencies
run: |
for chart in charts/*; do
if [ -f "${chart}/Chart.yaml" ]; then
echo "Building dependencies for ${chart}"
helm dependency build --skip-refresh "${chart}"
fi
done
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.7.0
with:
config: .cr.yaml
charts_dir: charts
skip_existing: true
mark_as_latest: false
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
CR_GENERATE_RELEASE_NOTES: "true"