File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree File renamed without changes.
Original file line number Diff line number Diff line change 1+ name : Lint and Test Charts
2+
3+ on : pull_request
4+
5+ jobs :
6+ lint-test :
7+ runs-on : ubuntu-latest
8+ steps :
9+ - name : Checkout Code
10+ uses : actions/checkout@v3
11+ with :
12+ fetch-depth : 0
13+
14+ - name : Set up Helm
15+ uses : azure/setup-helm@v3.5
16+ with :
17+ version : v3.9.2
18+
19+ - uses : actions/setup-python@v4
20+ with :
21+ python-version : 3.7
22+
23+ - name : Set up chart-testing
24+ uses : helm/chart-testing-action@v2.4.0
25+
26+ - name : Run chart-testing (list-changed)
27+ id : list-changed
28+ run : |
29+ changed=$(ct list-changed --config .github/linters/ct.yaml)
30+ if [[ -n "$changed" ]]; then
31+ echo "::set-output name=changed::true"
32+ fi
33+
34+ - name : Run chart-testing (lint)
35+ run : ct lint --config .github/ct.yaml
36+
37+ - name : Create kind cluster
38+ uses : helm/kind-action@v1.5.0
39+ if : steps.list-changed.outputs.changed == 'true'
40+
41+ - name : Run chart-testing (install)
42+ run : ct install --config .github/linters/ct.yaml
Original file line number Diff line number Diff line change 1+ name : Release Charts
2+
3+ on :
4+ push :
5+ branches :
6+ - master
7+
8+ jobs :
9+ release :
10+ permissions :
11+ contents : write
12+
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v3
17+ with :
18+ fetch-depth : 0
19+
20+ - name : Configure Git
21+ run : |
22+ git config user.name "$GITHUB_ACTOR"
23+ git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
24+
25+ - name : Install Helm
26+ uses : azure/setup-helm@v3.5
27+ with :
28+ version : v3.9.2
29+
30+ - name : Run chart-releaser
31+ uses : helm/chart-releaser-action@v1.5.0
32+ env :
33+ CR_TOKEN : " ${{ secrets.GITHUB_TOKEN }}"
Load Diff This file was deleted.
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments