Skip to content

Commit

Permalink
[helm] feat: add helm github pages action to publish charts
Browse files Browse the repository at this point in the history
  • Loading branch information
guangzhengli committed Sep 14, 2022
1 parent a00b876 commit be11ac6
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 1 deletion.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release Charts

on:
push:
branches:
- main

jobs:
release:
# depending on default permission settings for your org (contents being read-only or read-write for workloads), you will have to add permissions
# see: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#modifying-the-permissions-for-the-github_token
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Configure Git
run: |
git config user.name "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: azure/setup-helm@v1
with:
version: v3.8.1

- name: Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: hello-helm
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1893,7 +1893,18 @@ kubectl get pods -n dev

### helm chart 打包和发布

上面的例子说明我们可以一行命令在一个新的 namespace 环境中安装所有需要的 k8s 资源!这也同样说明我们教程需要的所有 k8s 资源,可以快速的进行打包、分发和下载!
上面的例子说明我们可以用一行命令在一个新的环境中安装所有需要的 k8s 资源!这也同样说明我们教程需要的所有 k8s 资源,可以快速的进行打包、分发和下载!

在 `hello-helm` 目录下,执行

```shell
helm package .
# Successfully packaged chart and saved it to: /Users/guangzheng.li/workspace/k8s-tutorials/hello-helm/hello-helm-0.1.0.tgz
helm repo index .
```



## Dashboard(TODO)

Expand Down

0 comments on commit be11ac6

Please sign in to comment.