Skip to content

Commit 42f4b74

Browse files
committed
add goreleaser file
1 parent e20ee33 commit 42f4b74

File tree

2 files changed

+47
-2
lines changed

2 files changed

+47
-2
lines changed

.goreleaser.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
project_name: srl-grpc-tunnel
2+
builds:
3+
- env:
4+
- CGO_ENABLED=0
5+
ldflags:
6+
- -s -w -X main.version={{.Version}}-{{.ShortCommit}}
7+
goos:
8+
- linux
9+
goarch:
10+
- amd64
11+
archives:
12+
- replacements:
13+
linux: Linux
14+
amd64: x86_64
15+
checksum:
16+
name_template: "checksums.txt"
17+
snapshot:
18+
name_template: "{{ .Tag }}"
19+
changelog:
20+
sort: asc
21+
filters:
22+
exclude:
23+
- "^docs:"
24+
- "^test:"
25+
26+
nfpms:
27+
- id: srl-grpc-tunnel
28+
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
29+
replacements:
30+
amd64: x86_64
31+
linux: Linux
32+
vendor: Nokia
33+
homepage: https://github.com/karimra/srl-grpc-tunnel
34+
maintainer: Karim Radhouani <karim.radhouani@nokia.com>
35+
description: gRPC tunnel application for Nokia SR Linux
36+
formats:
37+
- rpm
38+
license: "BSD 2"
39+
bindir: /opt/srlinux/usr/bin/
40+
contents:
41+
- src: ./yang/grpc-tunnel.yang
42+
dst: /opt/grpc-tunnel/yang/grpc-tunnel.yang
43+
- src: ./yaml/grpc-tunnel.yaml
44+
dst: /etc/opt/srlinux/appmgr/grpc-tunnel.yml
45+
overrides:
46+
rpm:
47+
scripts:

nfpm.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ license: "BSD 2"
1717
contents:
1818
- src: ./builds/srl-grpc-tunnel
1919
dst: /opt/srlinux/usr/bin/srl-grpc-tunnel
20-
# - src: ./builds/srl-grpc-tunnel
21-
# dst: /opt/srlinux/usr/bin/grpc-tunnel
2220
- src: ./yang/grpc-tunnel.yang
2321
dst: /opt/grpc-tunnel/yang/grpc-tunnel.yang
2422
- src: ./yaml/grpc-tunnel.yaml

0 commit comments

Comments
 (0)