-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgoreleaser.yml
66 lines (58 loc) · 1.5 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
version: 2
project_name: greeter
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/**/*
- "{{ .ProjectName }}.yml"
checksum:
name_template: checksums.txt
snapshot:
version_template: "{{ .Tag }}-next"
publishers:
- name: fury.io deb/rpm packages
ids:
- greeter-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: greeter-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: |
Greeter NDK app
vendor: Nokia
license: GNU GPLv3
formats:
- deb
scripts:
postinstall: postinstall.sh
bindir: /usr/local/bin
contents:
- src: ./yang
dst: /opt/{{ .ProjectName }}/yang
- src: ./{{ .ProjectName }}.yml
dst: /etc/opt/srlinux/appmgr/