-
Notifications
You must be signed in to change notification settings - Fork 10
/
.goreleaser.yml
82 lines (78 loc) · 2.09 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
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
main: ./cmd/src-fingerprint
# Default build flags is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser`.
nfpms:
- id: deb_rpm
formats:
- deb
- rpm
dependencies:
- git
- procps
bindir: /usr/bin
vendor: GitGuardian
maintainer: GitGuardian <[email protected]>
license: MIT
homepage: https://github.com/GitGuardian/src-fingerprint
description: "Extract git related information (file shas, commit shas) from your version control system."
replacements:
linux: Linux
contents:
- src: README.md
dst: /usr/share/doc/src-fingerprint/README.md
- src: LICENSE
dst: /usr/share/doc/src-fingerprint/LICENSE
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-main"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
brews:
- name: src-fingerprint
tap:
owner: gitguardian
name: homebrew-tap
branch: main
token: "{{ .Env.PAT_GITHUB }}"
download_strategy: CurlDownloadStrategy
commit_author:
name: goreleaserbot
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
folder: Formula
description: "src-fingerprint is a CLI util to easily compute the fileshas associated to a set of git repositories."
publishers:
- name: cloudsmith
ids:
- deb_rpm
cmd: "scripts/goreleaser-cloudsmith-publisher {{ .Version }} {{ abs .ArtifactPath }}"
env:
- CLOUDSMITH_API_KEY={{ .Env.CLOUDSMITH_API_KEY }}