mirror of
https://github.com/kairos-io/osbuilder.git
synced 2025-08-27 20:09:12 +00:00
add chart release workflow
This commit is contained in:
parent
93ee38c4ce
commit
fe6677584a
5
.github/configs/cr.yaml
vendored
Normal file
5
.github/configs/cr.yaml
vendored
Normal file
@ -0,0 +1,5 @@
|
||||
## Reference: https://github.com/helm/chart-releaser/blob/main/pkg/config/config.go#L40-L65
|
||||
index-path: "./index.yaml"
|
||||
release-name-template: "{{ .Name }}-chart-v{{ .Version }}"
|
||||
generate-release-notes: true
|
||||
skip-existing: true
|
29
.github/workflows/chart.yml
vendored
Normal file
29
.github/workflows/chart.yml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: Publish Chart
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
name: Publish Helm Chart
|
||||
runs-on: ubuntu-22.04
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
|
||||
- name: Configure Git
|
||||
run: |
|
||||
git config user.name "$GITHUB_ACTOR"
|
||||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
||||
|
||||
- name: Run chart-releaser
|
||||
id: release
|
||||
uses: helm/chart-releaser-action@v1.5.0
|
||||
with:
|
||||
config: "./.github/configs/cr.yaml"
|
||||
env:
|
||||
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
Loading…
Reference in New Issue
Block a user