-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
51 lines (50 loc) · 1.44 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
version: 2
before:
hooks:
- go mod tidy # Download all the packages listed in go.sum
- go install github.com/Songmu/gocredits/cmd/gocredits@latest
- gocredits -w .
builds:
- env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
flags:
- -trimpath
ldflags:
- -s -w -X github.com/abicky/ecsmec/cmd.revision={{.ShortCommit}}
archives:
- # Exclude the version from the default name_template to download the latest version via https://github.com/abicky/ecsmec/releases/latest/download/$archive_name
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
files:
- LICENSE
- README.md
- CREDITS
format_overrides:
- goos: windows
format: zip
wrap_in_directory: true
brews:
- repository:
owner: abicky
name: homebrew-tools
homepage: "https://github.com/abicky/ecsmec"
description: "A CLI tool for Amazon ECS that provides some commands to execute bothersome operations"
directory: Formula
install: |
bin.install "ecsmec"
generate_completions_from_executable(bin/"ecsmec", "completion")
test: |
system "#{bin}/ecsmec --version"
checksum:
name_template: 'checksums.txt'
snapshot:
version_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'