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
|
# Make sure to check the documentation at https://goreleaser.com
|
||||||
|
|
||||||
# The lines below are called `modelines`. See `:help modeline`
|
# The lines below are called `modelines`. See `:help modeline`
|
||||||
@ -10,15 +10,15 @@ version: 2
|
|||||||
|
|
||||||
before:
|
before:
|
||||||
hooks:
|
hooks:
|
||||||
# You may remove this if you don't use go modules.
|
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
# you may remove this if you don't need go generate
|
# you may remove this if you don't need go generate
|
||||||
- go generate ./...
|
- go generate ./...
|
||||||
|
|
||||||
builds:
|
builds:
|
||||||
- env:
|
- id: tcpfwd
|
||||||
- CGO_ENABLED=0
|
|
||||||
binary: tcpfwd
|
binary: tcpfwd
|
||||||
|
env:
|
||||||
|
- CGO_ENABLED=0
|
||||||
ldflags:
|
ldflags:
|
||||||
- -s -w -X main.version={{.Env.VERSION}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
|
- -s -w -X main.version={{.Env.VERSION}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser
|
||||||
goos:
|
goos:
|
||||||
@ -27,8 +27,11 @@ builds:
|
|||||||
- darwin
|
- darwin
|
||||||
|
|
||||||
archives:
|
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`.
|
# 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: >-
|
name_template: >-
|
||||||
tcpfwd_{{ .Env.VERSION }}_
|
tcpfwd_{{ .Env.VERSION }}_
|
||||||
{{- title .Os }}_
|
{{- title .Os }}_
|
||||||
@ -36,10 +39,9 @@ archives:
|
|||||||
{{- else if eq .Arch "386" }}i386
|
{{- else if eq .Arch "386" }}i386
|
||||||
{{- else }}{{ .Arch }}{{ end }}
|
{{- else }}{{ .Arch }}{{ end }}
|
||||||
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
{{- if .Arm }}v{{ .Arm }}{{ end }}
|
||||||
# use zip for windows archives
|
|
||||||
format_overrides:
|
format_overrides:
|
||||||
- goos: windows
|
- goos: windows
|
||||||
formats: [zip]
|
formats: [tar.gz, zip]
|
||||||
|
|
||||||
changelog:
|
changelog:
|
||||||
sort: asc
|
sort: asc
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user