-
Notifications
You must be signed in to change notification settings - Fork 30
40 lines (39 loc) · 1.32 KB
/
helm-testing-chart.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
name: Helm Testing Chart
on:
push:
branches:
- 'helm-testing/**'
- '!helm-testing/**-staging**'
paths:
- 'chart/**'
- '.github/**'
jobs:
helm-testing-chart:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: cachix/install-nix-action@v22
- name: Pre-populate nix-shell
run: |
export NIX_PATH=nixpkgs=$(jq '.nixpkgs.url' nix/sources.json -r)
echo "NIX_PATH=$NIX_PATH" >> $GITHUB_ENV
nix-shell --pure --run "echo" ./scripts/helm/shell.nix
- name: Update chart
run: |
# Update logLevel to 'debug'
sed -Ei "s~(logLevel: .*)~logLevel: debug~" chart/values.yaml
# Update repo url/name across all chart files
sed -i "s/mayastor-extensions/mayastor-chart-donotuse/g" chart/*.*
- name: Check if the chart is publishable
run: |
branch="${{ github.ref_name }}"
nix-shell --pure --run "./scripts/helm/publish-chart-yaml.sh --check-chart "$branch"" ./scripts/helm/shell.nix
- name: Publish Mayastor Helm chart
uses: stefanprodan/[email protected]
with:
token: ${{ secrets.ORG_CI_GITHUB }}
charts_dir: .
repository: mayastor-chart-donotuse
branch: gh-pages