-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
misc: add helm chart build action (#4627)
- Loading branch information
Showing
1 changed file
with
30 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Helm CI | ||
|
||
on: | ||
# Triggers the workflow on push or pull request events but only for the dev branch | ||
push: | ||
branches: [ dev ] | ||
paths: [ dev/helm/** ] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Generate Chart Archive | ||
run: | | ||
mkdir -p $GITHUB_WORKSPACE/charts | ||
helm package . -d $GITHUB_WORKSPACE/charts | ||
working-directory: $GITHUB_WORKSPACE/dev/helm | ||
|
||
- name: Generate Index | ||
run: | | ||
helm repo index . | ||
ls -l | ||
working-directory: $GITHUB_WORKSPACE/charts |