1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2024-12-14 11:57:48 +00:00

update github workflow - disable krew release on rc release

This commit is contained in:
Shuting Zhao 2020-11-25 15:50:56 -08:00
parent bfab77ac5a
commit 5f3c0cef4a
2 changed files with 25 additions and 11 deletions

18
.github/workflows/krew.yaml vendored Normal file
View file

@ -0,0 +1,18 @@
name: prereleaser
on:
push:
tags:
- 'v*'
- '!v*-rc*'
jobs:
release-cli-via-krew:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
- name: Update new version in krew-index
uses: rajatjindal/krew-release-bot@v0.0.38

View file

@ -2,20 +2,19 @@ name: prereleaser
on:
push:
tags:
- '*'
- 'v*'
jobs:
docker-and-e2e:
runs-on: ubuntu-latest
steps:
-
name: Checkout
- name: Checkout
uses: actions/checkout@v2
-
name: Unshallow
- name: Unshallow
run: git fetch --prune --unshallow
-
name: Set up Go
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
@ -45,7 +44,7 @@ jobs:
echo ">>> Run Kyverno e2e test"
make test-e2e
create-release-gh-helm-krew:
create-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
@ -80,6 +79,3 @@ jobs:
uses: helm/chart-releaser-action@v1.1.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
- name: Update new version in krew-index
uses: rajatjindal/krew-release-bot@v0.0.38