From b59565bf7460b1a487e8e4d9b92834e3fdeed418 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Tue, 19 Dec 2023 08:57:04 -0800 Subject: add goreleaser to go template --- templates/go/.goreleaser.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 templates/go/.goreleaser.yaml (limited to 'templates/go/.goreleaser.yaml') diff --git a/templates/go/.goreleaser.yaml b/templates/go/.goreleaser.yaml new file mode 100644 index 0000000..d907209 --- /dev/null +++ b/templates/go/.goreleaser.yaml @@ -0,0 +1,28 @@ +project_name: fixproject +builds: + - id: default + main: . + binary: fixproject + flags: + - -tags + - -trimpath + env: + - CGO_ENABLED=0 + ldflags: + - -s -w -X main.Version={{.Version}} -X main.BuildDate={{ .CommitDate }} + goos: + - darwin + - linux + goarch: + - amd64 + - arm64 +archives: + - id: default + builds: + - default + name_template: "fixproject_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}" + format: tar.gz +checksum: + name_template: "checksums.txt" +snapshot: + name_template: "{{ incpatch .Version }}-next" -- cgit v1.2.3