-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.goreleaser.yml
140 lines (128 loc) · 3.78 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
project_name: circonus-kubernetes-agent
before:
hooks:
- go mod tidy
- cmd: golangci-lint run
env:
- GOOS=linux
- govulncheck ./...
builds:
- id: cka
main: main.go
binary: sbin/circonus-kubernetes-agentd
env:
- CGO_ENABLED=0
goarch:
- amd64
- arm64
goos:
- linux
ignore:
-
goarch: 386
flags:
- -trimpath
ldflags:
- -s
- -w
- -extldflags "-static"
- -X github.com/circonus-labs/circonus-kubernetes-agent/internal/release.VERSION={{.Version}}
- -X github.com/circonus-labs/circonus-kubernetes-agent/internal/release.COMMIT={{.ShortCommit}}
- -X github.com/circonus-labs/circonus-kubernetes-agent/internal/release.DATE={{.Date}}
- -X github.com/circonus-labs/circonus-kubernetes-agent/internal/release.TAG={{.Tag}}
dockers:
- id: cka-amd64
goos: linux
goarch: amd64
goarm: ""
ids: ['cka']
build_flag_templates:
- "--pull"
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.version={{.Version}}"
- "--label=org.label-schema.name={{.ProjectName}}"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--platform=linux/amd64"
dockerfile: docker/x86_64/Dockerfile
image_templates:
- "circonus/{{.ProjectName}}:{{.Tag}}-amd64"
- "circonus/{{.ProjectName}}:latest-amd64"
skip_push: false
- id: cka-arm64
goos: linux
goarch: arm64
goarm: ""
ids: ['cka']
build_flag_templates:
- "--pull"
- "--label=org.label-schema.schema-version=1.0"
- "--label=org.label-schema.version={{.Version}}"
- "--label=org.label-schema.name={{.ProjectName}}"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--platform=linux/arm64"
dockerfile: docker/arm64/Dockerfile
image_templates:
- "circonus/{{.ProjectName}}:{{.Tag}}-arm64"
- "circonus/{{.ProjectName}}:latest-arm64"
skip_push: false
docker_manifests:
- name_template: "circonus/{{.ProjectName}}:latest"
image_templates:
- "circonus/{{.ProjectName}}:latest-amd64"
- "circonus/{{.ProjectName}}:latest-arm64"
- name_template: "circonus/{{.ProjectName}}:{{.Tag}}"
image_templates:
- "circonus/{{.ProjectName}}:{{.Tag}}-amd64"
- "circonus/{{.ProjectName}}:{{.Tag}}-arm64"
archives:
- id: default
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}_{{.Arch}}"
format: tar.gz
files:
- LICENSE
- README.md
- CHANGELOG.md
release:
draft: false
github:
name: circonus-kubernetes-agent
owner: circonus-labs
prerelease: auto
changelog:
use: git
sort: desc
abbrev: 0
groups:
- title: Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 1
- title: 'Dependencies'
regexp: "^.*build(deps):+.*$"
order: 2
- title: Others
order: 999
filters:
exclude:
- '^docs:'
- typo
checksum:
name_template: "{{.ProjectName}}_checksums.txt"
sboms:
- artifacts: archive
args: ["$artifact", "--output", "[email protected]=$document"]
env:
- SYFT_GOLANG_SEARCH_LOCAL_MOD_CACHE_LICENSES=true
- SYFT_GOLANG_SEARCH_REMOTE_LICENSES=true
after:
hooks:
- cmd: bash -c 'for b in *.sbom; do grype -q --add-cpes-if-none $b; done'
dir: ./dist