-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yaml
60 lines (55 loc) · 1.75 KB
/
.goreleaser.yaml
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
52
53
54
55
56
57
58
59
60
version: 2
before:
hooks:
- rm -rf completions
- mkdir completions
- sh -c "for sh in bash zsh fish; do go run main.go completion "$sh" >"completions/limesctl.$sh"; done"
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
ldflags:
- -s -w
- -X github.com/sapcc/go-api-declarations/bininfo.binName=limesctl
- -X github.com/sapcc/go-api-declarations/bininfo.version={{ .Version }}
- -X github.com/sapcc/go-api-declarations/bininfo.commit={{ .FullCommit }}
# Use CommitDate instead of Date for reproducibility.
- -X github.com/sapcc/go-api-declarations/bininfo.buildDate={{ .CommitDate }}
# Set the modified timestamp on the output binary to ensure that builds are reproducible.
mod_timestamp: "{{ .CommitTimestamp }}"
snapshot:
name_template: "{{ .Tag }}-next"
checksum:
name_template: "checksums.txt"
archives:
- name_template: '{{ .ProjectName }}-{{ replace .Version "v" "" }}-{{ .Os }}-{{ .Arch }}'
format_overrides:
- goos: windows
format: zip
files:
- CHANGELOG.md
- LICENSE
- README.md
- completions/*
brews:
- repository:
owner: sapcc
name: limesctl
directory: HomebrewFormula
homepage: https://github.com/sapcc/limesctl
description: Command-line interface for Limes
license: Apache-2.0
install: |-
bin.install "limesctl"
bash_completion.install "completions/limesctl.bash" => "limesctl"
fish_completion.install "completions/limesctl.fish"
zsh_completion.install "completions/limesctl.zsh" => "_limesctl"
test: |
system "#{bin}/limesctl --version"
commit_msg_template: "Homebrew: update formula to {{ .Tag }}"