Repository navigation
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
118 lines (111 loc) · 2.6 KB
/
Copy path.goreleaser.yaml
File metadata and controls
118 lines (111 loc) · 2.6 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
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
# yaml-language-server: $schema=https://raw.githubusercontent.com/goreleaser/goreleaser/v2.17.1/www/docs/static/schema.json
version: 2
project_name: tested
release:
github:
owner: greenpau
name: tested
draft: false
prerelease: auto
checksum:
name_template: "{{ .ProjectName }}_{{ .Version }}_SHA256SUMS"
algorithm: sha256
builds:
- id: tested
main: .
binary: tested
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
flags:
- -trimpath
- -mod=readonly
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w
- -X main.appVersion={{ .Version }}
- -X main.gitBranch={{ if or (not .Branch) (eq .Branch "HEAD") }}detached{{ else }}{{ .Branch }}{{ end }}
- -X main.gitCommit={{ .FullCommit }}{{ if .IsGitDirty }}-dirty{{ end }}
- -X main.buildUser=goreleaser
- -X main.buildDate={{ .Date }}
archives:
- id: tested
ids:
- tested
formats:
- tar.gz
format_overrides:
- goos: windows
formats:
- zip
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
files:
- LICENSE
- README.md
- SECURITY.md
- USER_GUIDE.md
nfpms:
- id: tested
ids:
- tested
package_name: tested
vendor: greenpau
homepage: https://github.com/greenpau/tested
maintainer: "Paul Greenberg <greenpau@outlook.com>"
description: Go test coverage and reporting in one command
license: Apache-2.0
bindir: /usr/bin
formats:
- deb
- rpm
contents:
- src: LICENSE
dst: /usr/share/doc/tested/copyright
packager: deb
file_info:
mode: 0644
- src: LICENSE
dst: /usr/share/licenses/tested/LICENSE
packager: rpm
file_info:
mode: 0644
- src: README.md
dst: /usr/share/doc/tested/README.md
file_info:
mode: 0644
- src: SECURITY.md
dst: /usr/share/doc/tested/SECURITY.md
file_info:
mode: 0644
- src: USER_GUIDE.md
dst: /usr/share/doc/tested/USER_GUIDE.md
file_info:
mode: 0644
file_name_template: >-
{{ .PackageName }}_
{{- .Version }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
changelog:
use: git
sort: asc
filters:
exclude:
- "^docs?:"
- "^tests?:"
- "^skills:"
- "^github:"
- "^ops:"
- "^release"