-
Notifications
You must be signed in to change notification settings - Fork 0
/
goreleaser.yml
68 lines (60 loc) · 1.56 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
56
57
58
59
60
61
62
63
64
65
66
67
68
version: 2
project_name: sshx
builds:
- id: bin
env:
- CGO_ENABLED=0
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.ShortCommit}}
gcflags:
- all=-N -l
goos:
- linux
goarch:
- amd64
upx:
- enabled: true
compress: best
archives:
- name_template: '{{ .ProjectName }}_{{ replace .Version "v" "" }}_{{ .Os }}_{{ .Arch }}'
files:
- "yang/*.yang"
- "app/{{ .ProjectName }}.yml"
checksum:
name_template: checksums.txt
snapshot:
version_template: "{{ .Tag }}-next"
publishers:
- name: fury.io deb/rpm packages
ids:
- nfpms # this id belongs to nfpm section and is used to only upload artifacts from nfpm
dir: "{{ dir .ArtifactPath }}"
cmd: curl -F package=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/srlinux/
release:
prerelease: auto
changelog:
use: github-native
nfpms:
- id: nfpms
file_name_template: '{{ .ProjectName }}_{{ replace .Version "v" "" }}_{{ .Os }}_{{ .Arch }}'
package_name: ndk-{{ .ProjectName }}-go
maintainer: Roman Dodin <[email protected]>
homepage: https://learn.srlinux.dev
description: |
SSHX NDK app
vendor: Nokia
license: GNU GPLv3
formats:
- deb
scripts:
postinstall: postinstall.sh
bindir: /usr/local/bin
contents:
- src: ./bin/sshx-0.2.5
dst: /opt/{{ .ProjectName }}/sshx-bin
- src: ./yang
dst: /opt/{{ .ProjectName }}/yang
- src: ./app/{{ .ProjectName }}.yml
dst: /etc/opt/srlinux/appmgr/