-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
68 lines (68 loc) · 1.61 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
project_name: yangpath
builds:
- env:
- CGO_ENABLED=0
ldflags:
- -s -w -X github.com/hellt/yangpath/cmd.version={{.Version}} -X github.com/hellt/yangpath/cmd.commit={{.ShortCommit}} -X github.com/hellt/yangpath/cmd.date={{.Date}} -X github.com/hellt/yangpath/cmd.gitURL={{.GitURL}}
goos:
- linux
- darwin
- windows
goarch:
- amd64
- 386
- arm
- arm64
hooks:
post: upx "{{ .Path }}"
dockers:
- goos: linux
goarch: amd64
binaries:
- yangpath
image_templates:
- "docker.io/hellt/yangpath:latest"
- 'docker.io/hellt/yangpath:{{ replace .Version "v" ""}}'
- "ghcr.io/hellt/yangpath:latest"
- 'ghcr.io/hellt/yangpath:{{ replace .Version "v" ""}}'
dockerfile: Dockerfile
skip_push: false
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
amd64: x86_64
386: i386
arm: armv7
arm64: aarch64
format_overrides:
- goos: windows
format: zip
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
nfpms:
- id: yangpath
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
replacements:
amd64: x86_64
386: i386
darwin: Darwin
linux: Linux
vendor: yangpath
homepage: https://yangpath.netdevops.me
maintainer: Roman Dodin <[email protected]>
description: YANG path exporter
license: Apache 2.0
formats:
- deb
- rpm
bindir: /usr/local/bin