From ad513808328101adf1cb89b2a2a99aaacf31c5f8 Mon Sep 17 00:00:00 2001 From: Christophe Tafani-Dereeper Date: Tue, 18 Jan 2022 23:57:11 +0100 Subject: [PATCH] Add goreleaser config (#9) --- .goreleaser.yaml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .goreleaser.yaml diff --git a/.goreleaser.yaml b/.goreleaser.yaml new file mode 100644 index 00000000..bcb1a6e5 --- /dev/null +++ b/.goreleaser.yaml @@ -0,0 +1,34 @@ +before: + hooks: + - go mod tidy +builds: + - env: + - CGO_ENABLED=0 + goos: + - linux + - windows + - darwin + ldflags: + - -X main.BuildVersion={{.Version}} + + dir: . + main: cmd/stratus/main.go + binary: stratus + +archives: + - replacements: + darwin: Darwin + linux: Linux + windows: Windows + 386: i386 + amd64: x86_64 +checksum: + name_template: 'checksums.txt' +snapshot: + name_template: "{{ incpatch .Version }}-next" +changelog: + sort: asc + filters: + exclude: + - '^docs:' + - '^test:'