1
0
Fork 0
mirror of https://github.com/kyverno/kyverno.git synced 2025-03-28 10:28:36 +00:00

goreleaser added

This commit is contained in:
Yuvraj 2020-04-29 09:57:49 -07:00
parent 2768574a39
commit 7221fc8200
2 changed files with 44 additions and 0 deletions

18
.github/main.workflow vendored Normal file
View file

@ -0,0 +1,18 @@
workflow "Release" {
on = "push"
resolves = ["goreleaser"]
}
action "is-tag" {
uses = "actions/bin/filter@master"
args = "tag"
}
action "goreleaser" {
uses = "docker://goreleaser/goreleaser"
secrets = [
"GITHUB_TOKEN",
]
args = "release"
needs = ["is-tag"]
}

26
.goreleaser.yml Normal file
View file

@ -0,0 +1,26 @@
project_name: kyverno
release:
github:
owner: nirmata
name: kyverno
builds:
- id: kyverno
goos:
- linux
- windows
- darwin
goarch:
- amd64
- "386"
env:
- CGO_ENABLED=0
- GO111MODULE=on
main: cmd/cli/kubectl-kyverno/main.go
ldflags: -s -w
-X github.com/nirmata/kyverno /pkg/version.BuildVersion={{ .Version }}
-X github.com/nirmata/kyverno /pkg/version.BuildHash={{ .FullCommit }}
-X github.com/nirmata/kyverno /pkg/version.BuildTime={{ .Timestamp }}
archives:
- format_overrides:
- goos: windows
format: zip