-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.goreleaser.yml
More file actions
66 lines (59 loc) · 1.77 KB
/
.goreleaser.yml
File metadata and controls
66 lines (59 loc) · 1.77 KB
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
62
63
64
65
66
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
- arm64
binary: '{{ .ProjectName }}'
archives:
- formats:
- binary
name_template: '{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}'
checksum:
name_template: '{{ .ProjectName }}-{{ .Version }}.sha256'
algorithm: sha256
release:
make_latest: false
draft: true
replace_existing_draft: false
prerelease: auto
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: support@nobl9.com
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