-
Notifications
You must be signed in to change notification settings - Fork 6
/
.goreleaser.yml
47 lines (46 loc) · 1.09 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
version: 2
builds:
- env:
- CGO_ENABLED=0
ldflags:
- -s -w -X github.com/hellt/cmdo/commando.version={{.Version}} -X github.com/hellt/cmdo/commando.commit={{.ShortCommit}}
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm
- arm64
ignore:
- goos: windows
goarch: arm64
- goos: windows
goarch: arm
checksum:
name_template: checksums.txt
snapshot:
name_template: "{{ .Tag }}-next"
publishers:
- name: fury.io deb/rpm packages
ids:
- cmdo # 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/netdevops/
release:
prerelease: auto
changelog:
sort: asc
nfpms:
- id: cmdo
package_name: cmdo
maintainer: Roman Dodin <[email protected]>
homepage: https://github.com/hellt/cmdo
description: |
Run commands against network devices
vendor: Nokia
license: BSD-3-clause
formats:
- rpm
- deb
bindir: /usr/bin