-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
117 lines (106 loc) · 2.4 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
108
109
110
111
112
113
114
115
116
117
project_name: webmesh-cni
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- id: webmesh-cni
main: main.go
binary: webmesh-cni
tags:
- osusergo
- netgo
flags:
- -trimpath
ldflags:
- -s
- -w
- -X github.com/webmeshproj/webmesh-cni/internal/version.Version={{ .Version }}
- -X github.com/webmeshproj/webmesh-cni/internal/version.GitCommit={{ .Commit }}
- -X github.com/webmeshproj/webmesh-cni/internal/version.BuildDate={{ .Date }}
goos:
- linux
goarch:
- amd64
- arm64
- arm
- '386'
- ppc64le
- s390x
env:
- CGO_ENABLED=0
upx:
- ids: [webmesh-cni]
enabled: true
compress: best
lzma: true
goarch: [amd64, arm64, arm, '386', ppc64le]
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: 'latest'
archives:
- id: webmesh-cni
format: tar.gz
builds:
- webmesh-cni
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
nfpms:
- id: webmesh-cni
maintainer: Avi Zimmerman <avi.zimmerman@gmail.com>
description: Webmesh CNI is a CNI plugin for Webmesh
homepage: https://webmeshproj.github.io
license: Apache 2.0
builds:
- webmesh-cni
formats:
- deb
- rpm
- apk
- archlinux
recommends:
- wireguard-tools
provides:
- webmesh-cni
archlinux:
packager: Avi Zimmerman <avi.zimmerman@gmail.com>
pkgbase: webmesh-cni
overrides:
rpm:
dependencies:
- elrepo-release
- epel-release
- kmod-wireguard
signs:
- cmd: cosign
id: binaries
env:
- COSIGN_EXPERIMENTAL=1
args:
- "sign-blob"
- "--yes"
- "--oidc-issuer=https://token.actions.githubusercontent.com"
- "--output-signature=${signature}"
- "--output-certificate=${signature}.cert"
- "${artifact}"
artifacts: checksum
changelog:
sort: asc
release:
github:
owner: webmeshproj
name: webmesh-cni
ids:
- webmesh-cni
extra_files:
- glob: "{{ .Env.BUNDLE_DIR }}/*"
- glob: dist/*.sig
- glob: dist/*.sig.cert
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj