1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +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:
georgekaz 2021-07-14 20:10:41 +01:00 committed by GitHub
parent b1861081be
commit b9e77575be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 54 additions and 36 deletions

View file

@ -173,23 +173,3 @@ jobs:
run: |
export PROJECT_PATH=$(pwd)
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
View 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
View 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

View file

@ -166,21 +166,6 @@ jobs:
env:
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:
runs-on: ubuntu-latest
needs: create-release

View file

@ -1,6 +1,6 @@
apiVersion: v1
name: kyverno
version: v1.4.2
version: v1.4.3
appVersion: v1.4.1
icon: https://github.com/kyverno/kyverno/raw/main/img/logo.png
description: Kubernetes Native Policy Management