mirror of
https://github.com/therootcompany/golib.git
synced 2026-03-02 23:57:59 +00:00
chore(release): update .goreleaser.yaml for cmd/tcpfwd
This commit is contained in:
parent
fc9f070285
commit
18eec1f5cb
@ -1,4 +1,4 @@
|
||||
# This is an example .goreleaser.yml file with some sensible defaults.
|
||||
# This file is generated by monorel (github.com/therootcompany/golib/tools/monorel).
|
||||
# Make sure to check the documentation at https://goreleaser.com
|
||||
|
||||
# The lines below are called `modelines`. See `:help modeline`
|
||||
@ -10,15 +10,15 @@ version: 2
|
||||
|
||||
before:
|
||||
hooks:
|
||||
# You may remove this if you don't use go modules.
|
||||
- go mod tidy
|
||||
# you may remove this if you don't need go generate
|
||||
- go generate ./...
|
||||
|
||||
builds:
|
||||
- env:
|
||||
- CGO_ENABLED=0
|
||||
- id: tcpfwd
|
||||
binary: tcpfwd
|
||||
env:
|
||||
- CGO_ENABLED=0
|
||||
ldflags:
|
||||
- -s -w -X main.version={{.Env.VERSION}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
|
||||
goos:
|
||||
@ -27,8 +27,11 @@ builds:
|
||||
- darwin
|
||||
|
||||
archives:
|
||||
- formats: [tar.gz]
|
||||
- id: tcpfwd
|
||||
ids: [tcpfwd]
|
||||
formats: [tar.gz]
|
||||
# this name template makes the OS and Arch compatible with the results of `uname`.
|
||||
# it uses the VERSION env var so the prefixed monorepo tag doesn't appear in archive filenames.
|
||||
name_template: >-
|
||||
tcpfwd_{{ .Env.VERSION }}_
|
||||
{{- title .Os }}_
|
||||
@ -36,10 +39,9 @@ archives:
|
||||
{{- else if eq .Arch "386" }}i386
|
||||
{{- else }}{{ .Arch }}{{ end }}
|
||||
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
||||
# use zip for windows archives
|
||||
format_overrides:
|
||||
- goos: windows
|
||||
formats: [zip]
|
||||
formats: [tar.gz, zip]
|
||||
|
||||
changelog:
|
||||
sort: asc
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user