-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
214 lines (196 loc) · 6.85 KB
/
.goreleaser.yaml
File metadata and controls
214 lines (196 loc) · 6.85 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
# GoReleaser configuration for NVIDIA Fleet Intelligence Agent
# See https://goreleaser.com for documentation
#
# Usage:
# goreleaser build --snapshot --clean # Test build
# goreleaser release --snapshot --clean # Create packages without releasing
# goreleaser release --clean # Full release (requires git tag)
#
# Prerequisites for ARM64 cross-compilation:
# - sudo apt-get install gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
version: 2
# Build configuration
builds:
- id: fleetint
main: ./cmd/fleetint
binary: fleetint
flags:
- -trimpath
goos:
- linux
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=1
ldflags:
- -s -w
- -X github.com/NVIDIA/fleet-intelligence-agent/internal/version.Version={{.Version}}
- -X github.com/NVIDIA/fleet-intelligence-agent/internal/version.Revision={{.FullCommit}}
- -X github.com/NVIDIA/fleet-intelligence-agent/internal/version.BuildTimestamp={{.Date}}
- -X github.com/NVIDIA/fleet-intelligence-agent/internal/version.Package=github.com/NVIDIA/fleet-intelligence-agent
# Cross-compilation setup for CGO
overrides:
- goos: linux
goarch: arm64
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
# Archive configuration
archives:
- id: fleetint-archive
name_template: "fleetint-{{ .Os }}-{{ if eq .Arch \"amd64\" }}x86_64{{ else if eq .Arch \"arm64\" }}sbsa{{ else }}{{ .Arch }}{{ end }}-{{ .Version }}"
wrap_in_directory: fleetint
files:
- NOTICE
- LICENSE
- src: deployments/packages/systemd/fleetintd.service
dst: systemd/fleetintd.service
- src: deployments/packages/systemd/fleetint.env
dst: env/fleetint
# Linux package configuration
nfpms:
- id: fleetint-deb
package_name: fleetint
file_name_template: "fleetint_{{ .Version }}_{{ if eq .Arch \"amd64\" }}amd64{{ else if eq .Arch \"arm64\" }}arm64{{ else }}{{ .Arch }}{{ end }}"
vendor: NVIDIA Corporation
homepage: https://github.com/NVIDIA/fleet-intelligence-agent
maintainer: NVIDIA Fleet Intelligence Team
description: |
NVIDIA Fleet Intelligence Agent - Host agent for GPU telemetry collection and attestation.
section: utils
priority: optional
formats:
- deb
dependencies:
- datacenter-gpu-manager-4-proprietary
- nvattest
- corelib
bindir: /usr/bin
contents:
# License and notices
- src: NOTICE
dst: /usr/share/doc/fleetint/NOTICE
# SystemD service file
- src: deployments/packages/systemd/fleetintd.service
dst: /usr/lib/systemd/system/fleetintd.service
type: config|noreplace
# Environment configuration
- src: deployments/packages/systemd/fleetint.env
dst: /etc/default/fleetint
type: config|noreplace
# Data directory
- dst: /var/lib/fleetint
type: dir
file_info:
mode: 0755
scripts:
preinstall: deployments/packages/scripts/preinst
postinstall: deployments/packages/scripts/postinst
preremove: deployments/packages/scripts/prerm
postremove: deployments/packages/scripts/postrm
- id: fleetint-rpm
package_name: fleetint
file_name_template: "fleetint-{{ .Version }}-1.{{ if eq .Arch \"amd64\" }}x86_64{{ else if eq .Arch \"arm64\" }}aarch64{{ else }}{{ .Arch }}{{ end }}"
vendor: NVIDIA Corporation
homepage: https://github.com/NVIDIA/fleet-intelligence-agent
maintainer: NVIDIA Fleet Intelligence Team
description: |
NVIDIA Fleet Intelligence Agent - Host agent for GPU telemetry collection and attestation.
section: Applications/System
formats:
- rpm
dependencies:
- datacenter-gpu-manager-4-proprietary
- nvattest
- corelib
bindir: /usr/bin
contents:
# License and notices
- src: NOTICE
dst: /usr/share/doc/fleetint/NOTICE
# SystemD service file
- src: deployments/packages/systemd/fleetintd.service
dst: /usr/lib/systemd/system/fleetintd.service
type: config|noreplace
# Environment configuration (RPM uses /etc/default like Debian)
- src: deployments/packages/systemd/fleetint.env
dst: /etc/default/fleetint
type: config|noreplace
# Data directory
- dst: /var/lib/fleetint
type: dir
file_info:
mode: 0755
scripts:
preinstall: deployments/packages/scripts/preinst
postinstall: deployments/packages/scripts/postinst
preremove: deployments/packages/scripts/prerm
postremove: deployments/packages/scripts/postrm
# Checksum configuration
checksum:
name_template: 'checksums.txt'
# Snapshot configuration
# Snapshot builds get a suffix with commit hash
# These are for testing only and NOT uploaded to Artifactory/kitmaker
snapshot:
version_template: "{{ incpatch .Version }}-{{ .ShortCommit }}"
# GitHub release configuration
release:
github:
owner: NVIDIA
name: fleet-intelligence-agent
header: |
## NVIDIA Fleet Intelligence Agent v{{.Version}}
This release includes a host agent for GPU telemetry collection and attestation.
### Available Packages
- **DEB packages**: `amd64` and `arm64` for Debian/Ubuntu systems
- **RPM packages**: `x86_64` and `aarch64` for RHEL/CentOS/Fedora systems
- **Binary archives**: Standalone binaries for both architectures
### Installation
Download the appropriate package for your system from the assets below. For installation instructions, see the project README.
footer: |
### Verification
All release artifacts are checksummed. Verify downloads using:
```bash
sha256sum -c checksums.txt
```
### Support
For issues and questions, please visit: https://github.com/NVIDIA/fleet-intelligence-agent/issues
draft: false
prerelease: auto # Auto-detect pre-release based on version (e.g., v1.0.0-beta)
mode: replace # Replace existing release if it exists
replace_existing_artifacts: true # Handle reruns where GitHub assets with same name already exist
skip_upload: false
# Changelog configuration
changelog:
sort: asc
use: github
groups:
- title: 'New Features'
regexp: '.*\bfeat(?:\([^)]+\))?!?:'
order: 0
- title: 'Bug Fixes'
regexp: '.*\bfix(?:\([^)]+\))?!?:'
order: 1
- title: 'Performance Improvements'
regexp: '.*\bperf(?:\([^)]+\))?!?:'
order: 2
- title: 'Documentation Updates'
regexp: '.*\bdocs(?:\([^)]+\))?!?:'
order: 3
- title: 'Refactors'
regexp: '.*\brefactor(?:\([^)]+\))?!?:'
order: 4
- title: 'Other Changes'
order: 999
filters:
exclude:
- 'test(\(\w+\))?:'
- 'ci(\(\w+\))?:'
- 'build(\(\w+\))?:'
- 'style(\(\w+\))?:'
- 'chore(\(\w+\))?:'
- Merge pull request
- Merge branch