Skip to content

Commit

Permalink
update github workflow - disable krew release on rc release
Browse files Browse the repository at this point in the history
  • Loading branch information
realshuting committed Nov 25, 2020
1 parent bfab77a commit 5f3c0ce
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 11 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/krew.yaml
Original file line number Diff line number Diff line change
@@ -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/[email protected]
18 changes: 7 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -80,6 +79,3 @@ jobs:
uses: helm/[email protected]
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

- name: Update new version in krew-index
uses: rajatjindal/[email protected]

0 comments on commit 5f3c0ce

Please sign in to comment.