-
Notifications
You must be signed in to change notification settings - Fork 249
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update goreleaser.yaml according to latest version
With goreleaser version v1.14.0, archives.replacements and nfpms.replacements have been deprecated and we can leverage their respective name_template and file_name_template. Also the `replacements` property has been removed in v1.19.0. Updating goreleaser.yaml as per the suggested approach specified at https://goreleaser.com/deprecations/#archivesreplacements Signed-off-by: vinamra28 <[email protected]>
- Loading branch information
Showing
1 changed file
with
20 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,14 +17,14 @@ builds: | |
ldflags: | ||
- -w -X github.com/tektoncd/cli/pkg/cmd/version.clientVersion={{.Version}} | ||
archives: | ||
- name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}" | ||
replacements: | ||
darwin: Darwin | ||
linux: Linux | ||
windows: Windows | ||
386: i386 | ||
amd64: x86_64 | ||
arm64: aarch64 | ||
- name_template: >- | ||
{{- .Binary }}_ | ||
{{- .Version }}_ | ||
{{- title .Os }}_ | ||
{{- if eq .Arch "amd64" }}x86_64 | ||
{{- else if eq .Arch "386" }}i386 | ||
{{- else if eq .Arch "arm64" }}aarch64 | ||
{{- else }}{{ .Arch }}{{ end }} | ||
format_overrides: | ||
- goos: windows | ||
format: zip | ||
|
@@ -41,11 +41,10 @@ changelog: | |
- Merge pull request | ||
- Merge branch | ||
release: | ||
prerelease: true | ||
prerelease: "true" | ||
brews: | ||
- | ||
name: tektoncd-cli | ||
tap: | ||
- name: tektoncd-cli | ||
repository: | ||
owner: tektoncd | ||
name: homebrew-tools | ||
folder: Formula | ||
|
@@ -62,7 +61,15 @@ brews: | |
(zsh_completion/"_tkn").write output | ||
prefix.install_metafiles | ||
nfpms: | ||
- file_name_template: "tektoncd-cli-{{.Version}}_{{.Os}}-{{.Arch}}" | ||
- file_name_template: >- | ||
tektoncd-cli- | ||
{{- .Version }}_ | ||
{{- title .Os }}- | ||
{{- if eq .Arch "amd64" }}64bit | ||
{{- else if eq .Arch "386" }}32bit | ||
{{- else if eq .Arch "arm" }}ARM | ||
{{- else if eq .Arch "arm64" }}ARM64 | ||
{{- else }}{{ .Arch }}{{ end }} | ||
homepage: https://github.com/tektoncd/cli/ | ||
description: A command line interface for interacting with Tekton | ||
maintainer: Tekton Developers <[email protected]> | ||
|
@@ -72,15 +79,6 @@ nfpms: | |
- deb | ||
- rpm | ||
bindir: /usr/bin | ||
replacements: | ||
amd64: 64bit | ||
386: 32bit | ||
arm: ARM | ||
arm64: ARM64 | ||
darwin: macOS | ||
linux: Linux | ||
windows: Windows | ||
|
||
universal_binaries: | ||
- replace: true | ||
name_template: 'tkn' |