From 380898efd473c8203a17d08673bb37c9bbad7b0e Mon Sep 17 00:00:00 2001 From: lesovsky Date: Sat, 19 Dec 2020 13:06:59 +0500 Subject: [PATCH] Goreleaser: adopt Makefile's flow to goreleaser. --- .goreleaser.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index 7826d67..25a93cd 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,15 +1,26 @@ builds: - binary: noisia - goarch: [amd64] + main: ./cmd/main.go + goarch: + - amd64 goos: - linux + env: + - CGO_ENABLED=0 + ldflags: + - -a -installsuffix cgo + - -X main.appName=noisia -X main.gitTag={{.Tag}} -X main.gitCommit={{.Commit}} -X main.gitBranch={{.Branch}} + archives: - builds: [noisia] + changelog: sort: asc + nfpms: - vendor: noisia homepage: https://github.com/lesovsky/noisia maintainer: Alexey Lesovsky description: Harmful workload generator for PostgreSQL - formats: [deb] \ No newline at end of file + license: BSD-3 + formats: [ deb, rpm ] \ No newline at end of file