-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
61 lines (54 loc) · 1.73 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
52
53
54
55
56
57
58
59
60
61
version: 2
project_name: sloctl
builds:
- main: ./cmd/sloctl
env:
- CGO_ENABLED=0
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- '-s -w -X github.com/nobl9/sloctl/internal.BuildVersion={{ .Version }} -X github.com/nobl9/sloctl/internal.BuildGitBranch={{ .Branch }} -X github.com/nobl9/sloctl/internal.BuildGitRevision={{ .ShortCommit }}'
goos:
- windows
- linux
- darwin
goarch:
- amd64
binary: '{{ .ProjectName }}'
archives:
- format: binary
name_template: '{{ .ProjectName }}-{{ if eq .Os "darwin" }}macos{{ else }}{{ .Os }}{{ end }}-{{ .Version }}'
checksum:
name_template: '{{ .ProjectName }}-{{ .Version }}-SHA256SUMS'
algorithm: sha256
release:
make_latest: false
github:
owner: nobl9
name: sloctl
brews:
- name: '{{ .ProjectName }}'
repository:
owner: nobl9
name: 'homebrew-{{ .ProjectName }}'
branch: main
commit_msg_template: 'Brew formula update for {{ .ProjectName }} version {{ .Version }}'
homepage: https://docs.nobl9.com/sloctl-user-guide
description: Command-line client for Nobl9
commit_author:
name: nobl9
email: [email protected]
test: |
assert_predicate bin/"{{ .ProjectName }}", :exist?
system "{{ .ProjectName }}", "--help"
install: |
bin.install Dir['{{ .ProjectName }}-*-{{ .Version }}'].first() => "{{ .ProjectName }}"
caveats: |
Thank you for installing the command-line client for Nobl9!
To see help and a list of available commands type:
$ {{ .ProjectName }} help
For more information on how to use the command-line client
and the Nobl9 managed cloud service, visit:
https://docs.nobl9.com/sloctl-user-guide
directory: Formula