-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
117 lines (107 loc) · 2.59 KB
/
Copy path.goreleaser.yaml
File metadata and controls
117 lines (107 loc) · 2.59 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
# GoReleaser config — https://goreleaser.com
# Builds static linux amd64/arm64 binaries, packages guest-agent as deb/rpm,
# and publishes archives + checksums + changelog to the GitHub Release.
version: 2
project_name: guest-agent
before:
hooks:
- go mod tidy
builds:
- id: guest-agent
main: ./cmd/guest-agent
binary: guest-agent
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
# Mirrors Makefile LDFLAGS. Version var lives in internal/agent, not main.
ldflags:
- -s -w -X github.com/liquidmetal-dev/guest-agent/internal/agent.Version={{ .Version }}
- id: vsock-connect
main: ./cmd/vsock-connect
binary: vsock-connect
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
ldflags:
- -s -w -X github.com/liquidmetal-dev/guest-agent/internal/agent.Version={{ .Version }}
archives:
- id: guest-agent
ids:
- guest-agent
formats:
- tar.gz
name_template: "guest-agent_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- LICENSE
- README.md
- init/guest-agent.service
- docs/host-usage.md
- id: vsock-connect
ids:
- vsock-connect
formats:
- tar.gz
name_template: "vsock-connect_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
files:
- LICENSE
- README.md
- docs/host-usage.md
nfpms:
- id: guest-agent
package_name: guest-agent
ids:
- guest-agent
formats:
- deb
- rpm
maintainer: LiquidMetal <noreply@liquidmetal.dev>
description: LiquidMetal guest-agent (vsock host control + ssh proxy).
license: MIT
homepage: https://github.com/liquidmetal-dev/guest-agent
vendor: LiquidMetal
# Match ExecStart in init/guest-agent.service (/usr/local/bin/guest-agent).
bindir: /usr/local/bin
contents:
- src: init/guest-agent.service
dst: /lib/systemd/system/guest-agent.service
type: config
# Install only — no scriptlets. User runs `systemctl enable guest-agent`.
checksum:
name_template: checksums.txt
changelog:
use: git
sort: asc
groups:
- title: Features
regexp: '^.*?feat(\(.+\))??!?:.+$'
order: 0
- title: Bug fixes
regexp: '^.*?fix(\(.+\))??!?:.+$'
order: 1
- title: Others
order: 999
filters:
exclude:
- '^docs:'
- '^test:'
- '^ci:'
- '^chore:'
- '^build:'
- '^style:'
- '^refactor:'
- Merge pull request
- Merge branch
release:
github:
owner: liquidmetal-dev
name: guest-agent
draft: false
prerelease: auto