-
-
Notifications
You must be signed in to change notification settings - Fork 70
56 lines (46 loc) · 1.32 KB
/
helm-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
name: Helm release
on:
push:
branches:
- main
paths:
- helm/**/*
- src/web/Directory.Build.props
- .github/workflows/helm-release.yml
env:
config: Release
jobs:
deploy:
runs-on: ubuntu-latest
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 "[email protected]"
- name: Install XMLLint
run: |
sudo apt-get update
sudo apt-get install libxml2-utils
- name: Install Helm
uses: azure/setup-helm@v4
with:
version: v3.10.0
- name: Get tagname
run: |
build_number=$(./version.sh)
echo $build_number
app_number=$(sed 's/\.//g' <<< $build_number)
echo $app_number
sed -i -E "s/appVersion:.*/appVersion: \"$build_number\"/" ./helm/azurestorageexplorer/Chart.yaml
sed -i -E "s/REPLACE_APP_VERSION/$app_number/" ./helm/azurestorageexplorer/Chart.yaml
sed -i -E "s/ tag:.*/ tag: \"$build_number\"/" ./helm/azurestorageexplorer/values.yaml
- name: Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: helm
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"