mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
Chart changes merged,not deployed,iterate version (#2111)
* Chart changes merged,not deployed,iterate version kyverno#2073 - Updates chart version to v1.4.2 - merged 13 days ago but not deployed kyverno#2081 - Fix Helm release during tag - merged 9 days ago kyverno#2037 - updated chart contents but not chart version - not released - merged 7 days ago kyverno#2103 - updated chart contents but not chart version - not released - merged 3 hours ago Status - main branch shows chart version is v1.4.2, git tag is v1.4.1 and latest helm chart on artifacthub.io/packages/helm/kyverno/kyverno is v1.4.1 This PR just iterates the chart version so that it's built, but I think chart versions should be incremented as part of the normal PR/merge process if chart elements are changed Signed-off-by: George Kaz <egeorgekaz@gmail.com> * break the helm release out into it's own workflows Signed-off-by: George Kaz <egeorgekaz@gmail.com> * workflow fixes Signed-off-by: George Kaz <egeorgekaz@gmail.com> * don't run helm-release on PR. Remove git config bit Signed-off-by: George Kaz <egeorgekaz@gmail.com>
This commit is contained in:
parent
b1861081be
commit
b9e77575be
5 changed files with 54 additions and 36 deletions
20
.github/workflows/build.yaml
vendored
20
.github/workflows/build.yaml
vendored
|
@ -173,23 +173,3 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
export PROJECT_PATH=$(pwd)
|
export PROJECT_PATH=$(pwd)
|
||||||
make test-unit
|
make test-unit
|
||||||
|
|
||||||
helm-tests:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: pre-checks
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v2
|
|
||||||
|
|
||||||
- name: Unshallow
|
|
||||||
run: git fetch --prune --unshallow
|
|
||||||
|
|
||||||
- uses: actions/setup-python@v2
|
|
||||||
with:
|
|
||||||
python-version: 3.7
|
|
||||||
|
|
||||||
- name: Set up chart-testing
|
|
||||||
uses: helm/chart-testing-action@v2.0.1
|
|
||||||
|
|
||||||
- name: Run chart-testing (lint)
|
|
||||||
run: ct lint --target-branch=main --check-version-increment=false
|
|
||||||
|
|
21
.github/workflows/helm-release.yaml
vendored
Normal file
21
.github/workflows/helm-release.yaml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
name: helm-release
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
paths:
|
||||||
|
- 'charts/kyverno/Chart.yaml'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
create-release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Install Helm
|
||||||
|
uses: azure/setup-helm@v1
|
||||||
|
with:
|
||||||
|
version: v3.4.0
|
||||||
|
|
||||||
|
- name: Run chart-releaser
|
||||||
|
uses: stefanprodan/helm-gh-pages@v1.4.1
|
||||||
|
with:
|
||||||
|
token: "${{ secrets.GITHUB_TOKEN }}"
|
32
.github/workflows/helm-test.yaml
vendored
Normal file
32
.github/workflows/helm-test.yaml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
name: helm-test
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
paths:
|
||||||
|
- 'charts/kyverno/**'
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- 'main'
|
||||||
|
paths:
|
||||||
|
- 'charts/kyverno/**'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
helm-tests:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Unshallow
|
||||||
|
run: git fetch --prune --unshallow
|
||||||
|
|
||||||
|
- uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.7
|
||||||
|
|
||||||
|
- name: Set up chart-testing
|
||||||
|
uses: helm/chart-testing-action@v2.0.1
|
||||||
|
|
||||||
|
- name: Run chart-testing (lint)
|
||||||
|
run: ct lint --target-branch=main --check-version-increment=true
|
15
.github/workflows/release.yaml
vendored
15
.github/workflows/release.yaml
vendored
|
@ -166,21 +166,6 @@ jobs:
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
- name: Configure Git
|
|
||||||
run: |
|
|
||||||
git config user.name "$GITHUB_ACTOR"
|
|
||||||
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
|
|
||||||
|
|
||||||
- name: Install Helm
|
|
||||||
uses: azure/setup-helm@v1
|
|
||||||
with:
|
|
||||||
version: v3.4.0
|
|
||||||
|
|
||||||
- name: Run chart-releaser
|
|
||||||
uses: stefanprodan/helm-gh-pages@master
|
|
||||||
with:
|
|
||||||
token: "${{ secrets.GITHUB_TOKEN }}"
|
|
||||||
|
|
||||||
release-cli-via-krew:
|
release-cli-via-krew:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: create-release
|
needs: create-release
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
name: kyverno
|
name: kyverno
|
||||||
version: v1.4.2
|
version: v1.4.3
|
||||||
appVersion: v1.4.1
|
appVersion: v1.4.1
|
||||||
icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png
|
icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png
|
||||||
description: Kubernetes Native Policy Management
|
description: Kubernetes Native Policy Management
|
||||||
|
|
Loading…
Add table
Reference in a new issue