Skip to content

Commit

Permalink
ci: add ci for release helm chart (#121)
Browse files Browse the repository at this point in the history
host Helm chart on GitHub pages.
  • Loading branch information
tao12345666333 authored Jul 30, 2021
1 parent 4a9388d commit b4ef96d
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/actions/chart-releaser-action
Submodule chart-releaser-action added at 6eec36
1 change: 1 addition & 0 deletions .github/actions/setup-helm
Submodule setup-helm added at feeafa
37 changes: 37 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release Charts

on:
push:
branches:
- main

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 "$GITHUB_ACTOR"
git config user.email "[email protected]"
- name: Install Helm
uses: ./.github/actions/setup-helm
with:
version: v3.4.0

- name: Add Helm repo
run: |
helm repo add bitnami https://charts.bitnami.com/bitnami
helm repo add apisix https://charts.apiseven.com
- name: Run chart-releaser
uses: ./.github/actions/chart-releaser-action
with:
charts_dir: .
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,9 @@
path = .github/actions/setup-kind
url = https://github.com/engineerd/setup-kind.git
branch = v0.5.0
[submodule ".github/actions/setup-helm"]
path = .github/actions/setup-helm
url = https://github.com/Azure/setup-helm.git
[submodule ".github/actions/chart-releaser-action"]
path = .github/actions/chart-releaser-action
url = https://github.com/helm/chart-releaser-action.git

0 comments on commit b4ef96d

Please sign in to comment.