-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
55 lines (51 loc) · 1.4 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
project_name: wgmesh
release:
github:
owner: pilab-dev
name: wgmesh
builds:
- binary: wgmesh
goos:
- linux
goarch:
- amd64
env:
- CGO_ENABLED=0
main: ./cmd/wgmesh/wgmesh.go
ldflags: "-s -w -X main.version={{ .Version }}"
nfpms:
- formats: [rpm]
maintainer: "Paal Gyula <gyula@pilab.hu>"
description: "Automated WireGuard Mesh Manager"
license: "MIT"
vendor: "Progressive Innovation LAB"
bindir: "/usr/sbin"
scripts:
postinstall: configs/postinstall
preremove: configs/preremove
contents:
- dst: /etc/wgmesh/wgmesh.sample.yaml
src: configs/wgmesh/wgmesh.sample.yaml
type: config|noreplace
- dst: /usr/lib/systemd/system/wgmesh.service
src: configs/wgmesh/wgmesh.service
overrides:
rpm:
dependencies:
- "wireguard-tools"
file_name_template: "{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}"
checksum:
name_template: "checksums.txt"
signs:
- cmd: gpg
args: ["--batch", "--pinentry-mode", "loopback", "--passphrase", "${GPG_PASSPHRASE}", "--detach-sign", "--armor", "${artifact}"]
artifacts: package
output: true
signature: "${artifact}.sig"
ids:
- default
env:
- GPG_PASSPHRASE=${GPG_PASSPHRASE}