-
Notifications
You must be signed in to change notification settings - Fork 2
64 lines (57 loc) · 1.6 KB
/
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
57
58
59
60
61
62
63
64
name: Release Charts
on:
push:
branches:
- master
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "dongjiang1989"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0
- name: Run chart-releaser
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
merge-master-back-to-dev:
runs-on: ubuntu-latest
needs:
- release
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Configure Git
run: |
git config user.name "dongjiang1989"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.4.0
- name: Merge master back to gh-page
run: |
git checkout gh-pages
git pull
git merge --no-ff master -m "Auto-merge master back to gh-pages"
git push origin gh-pages
helm repo add jetstack https://charts.jetstack.io
for i in `ls -r charts`
do
helm dependency build charts/${i}
helm package charts/${i}
done
helm repo index . --url https://kubeservice-stack.github.io/kubservice-charts/
git add .
git commit -m "update helm index.yaml"
git push origin gh-pages