-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yaml
107 lines (106 loc) · 3.27 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
release:
draft: false
prerelease: auto
env:
- GO111MODULE=on
- CGO_ENABLED=0
before:
hooks:
- go mod download
builds:
- id: node-collector
main: ./cmd/node-collector/main.go
binary: node-collector
goos:
- linux
goarch:
- amd64
- arm64
goarm:
- "7"
archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
builds:
- node-collector
replacements:
amd64: x86_64
arm: ARM
arm64: ARM64
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .FullCommit }}"
changelog:
sort: asc
filters:
exclude:
- '^docs'
- '^test'
- '^release'
dockers:
- image_templates:
- "ghcr.io/aquasecurity/node-collector:{{ .Version }}-amd64"
use: buildx
goos: linux
dockerfile: build/node-collector/Dockerfile
goarch: amd64
ids:
- node-collector
build_flag_templates:
- "--label=org.opencontainers.image.title=node-collector"
- "--label=org.opencontainers.image.description=collect node info"
- "--label=org.opencontainers.image.vendor=Aqua Security"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.source=https://github.com/aquasecurity/node-collector"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.documentation=https://aquasecurity.github.io/node-collector/v{{ .Version }}/"
- "--platform=linux/amd64"
- image_templates:
- "ghcr.io/aquasecurity/node-collector:{{ .Version }}-arm64"
use: buildx
goos: linux
dockerfile: build/node-collector/Dockerfile
goarch: arm64
ids:
- node-collector
build_flag_templates:
- "--label=org.opencontainers.image.title=node-collector"
- "--label=org.opencontainers.image.description=Keeps node-collector resources updated"
- "--label=org.opencontainers.image.vendor=Aqua Security"
- "--label=org.opencontainers.image.version={{ .Version }}"
- "--label=org.opencontainers.image.created={{ .Date }}"
- "--label=org.opencontainers.image.source=https://github.com/aquasecurity/node-collector"
- "--label=org.opencontainers.image.revision={{ .FullCommit }}"
- "--label=org.opencontainers.image.documentation=https://aquasecurity.github.io/node-collector/v{{ .Version }}/"
- "--platform=linux/arm64"
docker_manifests:
- name_template: "ghcr.io/aquasecurity/node-collector:{{ .Version }}"
image_templates:
- "ghcr.io/aquasecurity/node-collector:{{ .Version }}-amd64"
- "ghcr.io/aquasecurity/node-collector:{{ .Version }}-arm64"
signs:
- cmd: cosign
signature: "${artifact}.sig"
certificate: "${artifact}.pem"
args:
- "sign-blob"
- "--yes"
- "--oidc-issuer=https://token.actions.githubusercontent.com"
- "--output-certificate=${certificate}"
- "--output-signature=${signature}"
- "${artifact}"
artifacts: all
output: true
docker_signs:
- cmd: cosign
args:
- "sign"
- "--yes"
- "--oidc-issuer=https://token.actions.githubusercontent.com"
- "${artifact}"
artifacts: all
output: true