-
Notifications
You must be signed in to change notification settings - Fork 34
49 lines (47 loc) · 1.32 KB
/
charts.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
name: Lint and publish charts
on:
pull_request:
paths:
- charts/**/*
push:
paths:
- .github/workflows/charts.yml
- charts/**/*
- scripts/build-repo.sh
jobs:
helm-publish:
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
needs: [helm-lint]
steps:
- name: Checkout
uses: actions/checkout@v2.0.0
with:
fetch-depth: '0'
- name: Download Helm
run: |
curl -L https://get.helm.sh/helm-v3.4.1-linux-amd64.tar.gz | tar -xzf - --strip-component=1 linux-amd64/helm
chmod +x helm
- name: Package charts
run: |
sh ./scripts/build-repo.sh
- name: Push to GitHub Pages
uses: peaceiris/actions-gh-pages@v2.9.0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./repo
with:
forceOrphan: true
helm-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2.0.0
- name: Download Helm
run: |
curl -L https://get.helm.sh/helm-v3.4.1-linux-amd64.tar.gz | tar -xzf - --strip-component=1 linux-amd64/helm
chmod +x helm
- name: Lint using helm
run: |
./helm lint charts/*