diff options
author | Franck Cuny <franck@fcuny.net> | 2023-12-19 08:57:04 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-12-19 08:58:54 -0800 |
commit | b59565bf7460b1a487e8e4d9b92834e3fdeed418 (patch) | |
tree | 4d3c0d3d31f885dd0ab671a4b3029d7ace449065 /templates/go/.goreleaser.yaml | |
parent | chore: update flake (diff) | |
download | world-b59565bf7460b1a487e8e4d9b92834e3fdeed418.tar.gz |
add goreleaser to go template
Diffstat (limited to 'templates/go/.goreleaser.yaml')
-rw-r--r-- | templates/go/.goreleaser.yaml | 28 |
1 files changed, 28 insertions, 0 deletions
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" |