mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-15 12:17:56 +00:00
Support releasing kyverno and kyverno-policies chart separately (#3672)
Signed-off-by: Trey Dockendorf <tdockendorf@osc.edu>
This commit is contained in:
parent
bc23445833
commit
e0f6fa1b3e
1 changed files with 16 additions and 1 deletions
17
.github/workflows/helm-release.yaml
vendored
17
.github/workflows/helm-release.yaml
vendored
|
@ -2,7 +2,8 @@ name: helm-release
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'helm-chart-v*'
|
- 'kyverno-chart-v*'
|
||||||
|
- 'kyverno-policies-chart-v*'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
helm-tests:
|
helm-tests:
|
||||||
|
@ -38,8 +39,22 @@ jobs:
|
||||||
with:
|
with:
|
||||||
version: v3.4.1
|
version: v3.4.1
|
||||||
|
|
||||||
|
- name: Set version
|
||||||
|
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
|
||||||
|
|
||||||
|
- name: Create charts tmp directory
|
||||||
|
run: |
|
||||||
|
mkdir charts-tmp
|
||||||
|
if [[ "$RELEASE_VERSION" = "kyverno-policies-chart-v"* ]]; then
|
||||||
|
cp -a charts/kyverno-policies charts-tmp/kyverno-policies
|
||||||
|
fi
|
||||||
|
if [[ "$RELEASE_VERSION" = "kyverno-chart-v"* ]]; then
|
||||||
|
cp -a charts/kyverno charts-tmp/kyverno
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Run chart-releaser
|
- name: Run chart-releaser
|
||||||
uses: stefanprodan/helm-gh-pages@b43a8719cc63fdb3aa943cc57359ab19118eab3f #v1.5.0
|
uses: stefanprodan/helm-gh-pages@b43a8719cc63fdb3aa943cc57359ab19118eab3f #v1.5.0
|
||||||
with:
|
with:
|
||||||
token: "${{ secrets.GITHUB_TOKEN }}"
|
token: "${{ secrets.GITHUB_TOKEN }}"
|
||||||
linting: off
|
linting: off
|
||||||
|
charts_dir: charts-tmp
|
||||||
|
|
Loading…
Add table
Reference in a new issue