Skip to content

Commit

Permalink
added go releaser fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
gabo1208 committed Jul 7, 2023
1 parent d9f67d5 commit 559dab1
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .goreleaser.yml
Expand Up @@ -5,39 +5,39 @@ before:
# you may remove this if you don't need go generate
- go generate ./...
builds:
- id: "kn-vsphere-build"
binary: kn-vsphere
main: ./plugins/vsphere/cmd/vsphere/main.go
env:
- CGO_ENABLED=0
flags:
- -mod=vendor
ldflags:
- -X 'github.com/vmware-tanzu/sources-for-knative/plugins/vsphere/pkg/command/version.BuildDate={{.Date}}'
- -X 'github.com/vmware-tanzu/sources-for-knative/plugins/vsphere/pkg/command/version.Version={{.Version}}'
- -X 'github.com/vmware-tanzu/sources-for-knative/plugins/vsphere/pkg/command/version.GitRevision={{.Commit}}'
- id: "kn-vsphere-build"
binary: kn-vsphere
main: ./plugins/vsphere/cmd/vsphere/main.go
env:
- CGO_ENABLED=0
flags:
- -mod=vendor
ldflags:
- -X 'github.com/vmware-tanzu/sources-for-knative/plugins/vsphere/pkg/command/version.BuildDate={{.Date}}'
- -X 'github.com/vmware-tanzu/sources-for-knative/plugins/vsphere/pkg/command/version.Version={{.Version}}'
- -X 'github.com/vmware-tanzu/sources-for-knative/plugins/vsphere/pkg/command/version.GitRevision={{.Commit}}'
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
name_template: "kn-vsphere_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- LICENSE
- ./plugins/vsphere/README.adoc
wrap_in_directory: true
- id: foo
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
files:
- LICENSE
- ./plugins/vsphere/README.adoc
wrap_in_directory: true
checksum:
name_template: 'checksums.txt'
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- "^docs:"
- "^test:"
release:
draft: false
prerelease: false
Expand Down

0 comments on commit 559dab1

Please sign in to comment.