forked from aquasecurity/trivy-plugin-webhook
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
58 lines (58 loc) · 998 Bytes
/
.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
project_name: trivy-webhook
release:
draft: false
prerelease: auto
env:
- GO111MODULE=on
- CGO_ENABLED=0
before:
hooks:
- make build
builds:
- id: trivy-webhook
dir: .
main: ./main.go
binary: trivy-webhook
ldflags:
- -s -w
- "-extldflags '-static'"
- -X main.version={{.Version}}
goos:
- darwin
- linux
goarch:
- amd64
- arm
- arm64
goarm:
- 7
ignore:
- goos: darwin
goarch: 386
archives:
- id: archive
name_template: >-
{{- .ProjectName }}_
{{- .Version }}_
{{- if eq .Os "darwin" }}macOS_
{{- else if eq .Os "linux" }}Linux_
{{- else }}{{ .Os }}_
{{ end }}
{{- if eq .Arch "amd64" }}64bit
{{- else if eq .Arch "arm" }}ARM
{{- else if eq .Arch "arm64" }}ARM64
{{- else }}{{ .Arch }}
{{ end }}
builds:
- trivy-webhook
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .FullCommit }}"
changelog:
sort: asc
filters:
exclude:
- '^docs'
- '^test'
- '^release'