mirror of
https://github.com/kyverno/kyverno.git
synced 2025-03-31 03:45:17 +00:00
remove krew changes
This commit is contained in:
parent
753d12bdb2
commit
1cde29af8d
3 changed files with 31 additions and 46 deletions
31
.github/workflows/release.yaml
vendored
Normal file
31
.github/workflows/release.yaml
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
name: releaser
|
||||
|
||||
on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
|
||||
jobs:
|
||||
releaser:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
-
|
||||
name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
-
|
||||
name: Unshallow
|
||||
run: git fetch --prune --unshallow
|
||||
-
|
||||
name: Set up Go
|
||||
uses: actions/setup-go@v2
|
||||
with:
|
||||
go-version: 1.14
|
||||
-
|
||||
name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v2
|
||||
with:
|
||||
version: latest
|
||||
args: release --rm-dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
21
.travis.yml
21
.travis.yml
|
@ -36,24 +36,3 @@ after_success:
|
|||
make docker-publish-initContainer
|
||||
make docker-publish-kyverno
|
||||
fi
|
||||
|
||||
# Remove ENV after Testing. this env variable help us to test krew plugin without submit krew-index
|
||||
env:
|
||||
- KREW_RELEASE_BOT_WEBHOOK_URL=https://krew-release-bot-dryrun.rajatjindal.com/github-action-webhook
|
||||
|
||||
|
||||
deploy:
|
||||
- provider: script
|
||||
skip_cleanup: true
|
||||
api_key: $GITHUB_OAUTH_TOKEN
|
||||
script:
|
||||
- curl -sL https://git.io/goreleaser | bash
|
||||
- curl -LO https://github.com/rajatjindal/krew-release-bot/releases/download/v0.0.38/krew-release-bot_v0.0.38_linux_amd64.tar.gz
|
||||
- tar -xvf krew-release-bot_v0.0.38_linux_amd64.tar.gz
|
||||
- printenv && pwd && ls -ltr
|
||||
- ./krew-release-bot action
|
||||
on:
|
||||
tags: true
|
||||
|
||||
|
||||
|
||||
|
|
25
krew.yaml
25
krew.yaml
|
@ -1,25 +0,0 @@
|
|||
apiVersion: kyverno.googlecontainertools.github.com/v1alpha2
|
||||
kind: Plugin
|
||||
metadata:
|
||||
name: kyverno
|
||||
spec:
|
||||
homepage: https://github.com/nirmata/kyverno
|
||||
shortDescription: Kubernetes Native Policy Management
|
||||
version: {{ .TagName }}
|
||||
description: |
|
||||
Kyverno can be used to scan existing workloads for best practices, or can be used to enforce best practices by blocking or mutating API requests.Kyverno allows cluster adminstrators to manage environment specific configurations independently of workload configurations and enforce configuration best practices for their clusters.
|
||||
platforms:
|
||||
- selector:
|
||||
matchExpressions:
|
||||
- key: os
|
||||
operator: In
|
||||
values:
|
||||
- darwin
|
||||
- linux
|
||||
{{addURIAndSha "https://github.com/nirmata/kyverno/archive/{{ .TagName }}.tar.gz" .TagName }}
|
||||
bin: kyverno
|
||||
files:
|
||||
- from: kyverno-*/kyverno
|
||||
to: .
|
||||
- from: kyverno-*/LICENSE
|
||||
to: .
|
Loading…
Add table
Reference in a new issue