-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser.yaml
123 lines (123 loc) · 3.48 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
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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
before:
hooks:
- go mod tidy
builds:
- binary: mailtm
main: ./cmd/
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
archives:
- id: mailtm
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
dockers:
- id: mailtm
goos: linux
goarch: amd64
image_templates:
- "abgeo/{{.ProjectName}}:{{ .Tag }}"
- "abgeo/{{.ProjectName}}:v{{ .Major }}.{{ .Minor }}"
- "abgeo/{{.ProjectName}}:latest"
build_flag_templates:
- "--pull"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.description=CLI client for Mail.tm disposable mail service"
- "--label=org.opencontainers.image.authors=Temuri Takalandze <[email protected]>"
- "--label=org.opencontainers.image.url=https://github.com/ABGEO/mailtm"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
aurs:
- homepage: "https://github.com/ABGEO/mailtm"
description: "CLI client for Mail.tm disposable mail service"
maintainers:
- "Temuri Takalandze <[email protected]>"
license: "GPL-3.0"
private_key: "{{ .Env.AUR_KEY }}"
git_url: "ssh://[email protected]/{{ .ProjectName }}-bin.git"
package: |-
install -Dm755 "./{{ .ProjectName }}" "${pkgdir}/usr/bin/{{ .ProjectName }}"
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/{{ .ProjectName }}/LICENSE"
commit_author:
name: "Temuri Takalandze"
email: "[email protected]"
nfpms:
- id: packages
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
replacements:
386: i386
amd64: x86_64
vendor: ABGEO
homepage: https://github.com/ABGEO/mailtm
maintainer: "Temuri Takalandze <[email protected]>"
description: "CLI client for Mail.tm disposable mail service"
license: "GPL-3.0"
formats:
- deb
- rpm
deb:
signature:
key_file: '{{ .Env.GPG_KEY_FILE }}'
rpm:
signature:
key_file: '{{ .Env.GPG_KEY_FILE }}'
brews:
-
description: "CLI client for Mail.tm disposable mail service"
license: "GPL-3.0"
homepage: "https://github.com/ABGEO/mailtm"
tap:
owner: abgeo
name: homebrew-mailtm
commit_author:
name: "Temuri Takalandze"
email: "[email protected]"
folder: Formula
test: |-
system "#{bin}/mailtm", "--help"
install: |-
bin.install "mailtm"
publishers:
- name: fury.io
ids:
- packages
dir: "{{ dir .ArtifactPath }}"
cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/abgeo/
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_checksums.txt"
snapshot:
name_template: "{{ incpatch .Version }}-next"
changelog:
use: github
sort: asc
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: "Bug fixes"
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: Others
order: 999
filters:
exclude:
- "^chore:"
- "^docs:"
- "^ci:"
- "^build:"
- "^refactor:"
- "^test:"
signs:
- artifacts: checksum
args: ["--batch", "-u", "{{ .Env.GPG_FINGERPRINT }}", "--output", "${signature}", "--detach-sign", "${artifact}"]