-
Notifications
You must be signed in to change notification settings - Fork 67
/
.goreleaser.yml
100 lines (87 loc) · 1.98 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# all available options: https://goreleaser.com/customization/
project_name: summon
before:
hooks:
- go mod download
builds:
- id: summon
binary: summon
env:
- CGO_ENABLED=0
flags:
- -tags=netgo
goos:
- darwin # MacOS
- solaris
- windows
goarch:
- amd64
main: ./cmd/main.go
# Apple silicon support
- id: summon-arm
binary: summon
env:
- CGO_ENABLED=0
flags:
- -tags=netgo
goos:
- darwin # MacOS
goarch:
- arm64
main: ./cmd/main.go
# Make a static build for Linux
- id: summon-linux
binary: summon
env:
- CGO_ENABLED=1
flags:
- -tags=netgo
goos:
- linux
goarch:
- amd64
ldflags: -s -w -linkmode external -extldflags "-static"
main: ./cmd/main.go
archives:
- id: summon-release-archive
name_template: "{{.ProjectName}}-{{.Os}}-{{.Arch}}"
format_overrides:
- goos: windows
format: zip
files:
- none* # only package the binary - not defaults: readme, license, changelog
checksum:
name_template: 'SHA256SUMS.txt'
brews:
- description: CLI that provides on-demand secrets access for common DevOps tools.
homepage: https://github.com/cyberark/summon
url_template: https://github.com/cyberark/summon/releases/download/v{{.Version}}/summon-{{ tolower .Os }}-{{ tolower .Arch }}.tar.gz
install: |
bin.install "summon"
test: |
system "#{bin}/summon", "-v"
tap:
owner: cyberark
name: homebrew-tools
skip_upload: true
nfpms:
- file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}"
vendor: CyberArk
homepage: https://github.com/cyberark/summon
maintainer: Conjur Maintainers <[email protected]>
description: CLI that provides on-demand secrets access for common DevOps tools.
recommends:
- summon-conjur
license: MIT
formats:
- deb
- rpm
- apk
bindir: /usr/local/bin
dist: ./dist/goreleaser
release:
disable: false
draft: true
extra_files:
- glob: LICENSE
- glob: CHANGELOG.md