Skip to content

Commit

Permalink
add ci for helm charts releases
Browse files Browse the repository at this point in the history
  • Loading branch information
he2ss committed Sep 10, 2021
1 parent 9f3cc10 commit 16446f0
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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: azure/setup-helm@v1
with:
version: v3.4.0

- name: Run chart-releaser
uses: helm/[email protected]
with:
charts_dir: charts
config: cr.yaml
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
2 changes: 2 additions & 0 deletions cr.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
owner: crowdsecurity
git-base-url: https://api.github.com/

0 comments on commit 16446f0

Please sign in to comment.