From ac7abf28d9fe5aa2660a8345b9bf1dc04d2ebc15 Mon Sep 17 00:00:00 2001 From: Xavier Coulon Date: Fri, 8 Oct 2021 11:47:39 +0200 Subject: [PATCH] prepare for first release (again) (#22) fixes in GoRelease config Signed-off-by: Xavier Coulon --- .gitignore | 2 ++ .goreleaser.yml | 45 +++++++++++++++++---------------------------- 2 files changed, 19 insertions(+), 28 deletions(-) diff --git a/.gitignore b/.gitignore index 02ebf5b..6610254 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,5 @@ bin tmp + +dist/ \ No newline at end of file diff --git a/.goreleaser.yml b/.goreleaser.yml index e48687d..56dd765 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,36 +1,25 @@ -# This is an example goreleaser.yaml file with some sane defaults. -# Make sure to check the documentation at http://goreleaser.com -before: - hooks: - # you may remove this if you don't use vgo - # - go mod download - # you may remove this if you don't need go generate - # - go generate ./... builds: -- - # Path to main.go file or main package. - # Default is `.`. - main: ./cmd - # Custom ldflags templates. - # Default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}`. - ldflags: - - "-s -w -X github.com/xcoulon/kubectl-terminate/cmd.BuildCommit={{.Commit}} github.com/xcoulon/kubectl-terminate/cmd.BuildTag={{.Version}} -X github.com/xcoulon/kubectl-terminate/cmd.BuildTime={{.Date}}" - env: - - CGO_ENABLED=0 -archive: - replacements: - darwin: Darwin - linux: Linux - windows: Windows - 386: i386 - amd64: x86_64 + - env: + - CGO_ENABLED=0 + main: ./cmd/main.go + goos: + - linux + - windows + - darwin +archives: + - replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 checksum: name_template: 'checksums.txt' snapshot: - name_template: "{{ .Tag }}-next" + name_template: "{{ incpatch .Version }}-next" changelog: sort: asc filters: exclude: - - '^docs:' - - '^test:' + - '^docs:' + - '^test:'