-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
121 lines (108 loc) · 3.23 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
---
project_name: "dmux"
release:
github:
owner: "josh-silvas"
name: "dmux"
name_template: "{{ .Tag }}"
brews:
- name: "dmux"
commit_author:
name: "Josh Silvas"
email: "[email protected]"
tap:
owner: "josh-silvas"
name: "dmux"
folder: "Formula"
url_template: "https://github.com/josh-silvas/dmux/releases/{{ .ProjectName }}/{{ .Tag }}/{{ .ArtifactName }}"
caveats: |
DMux v{{ .Tag }} Notes:
1. DMux will create it's own system keychain called 'DMux-Keyring'
1a. You may need to reauthenticate dmux to this keychain after update because the binary is
a different signature.
2. Release changelog located at:
- https://github.com/josh-silvas/dmux/releases/tag/{{ .Tag }}
3. For issues with this tool, please submit a GitHub issue here:
- https://github.com/josh-silvas/dmux/issues
v{{ .Tag }} NEW RELEASE INFO:
4. Initial release!
homepage: "https://github.com/josh-silvas/dmux"
description: "DMux is a cli tool with ssh functionality for assist Network Engineering teams."
skip_upload: "auto"
test: "system '#{bin}/dmux'"
install: "bin.install 'dmux'"
nfpms:
- id: "dmux"
file_name_template: "{{ .ProjectName }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
builds:
- "dmux-linux-amd64"
vendor: "Josh Silvas"
homepage: "https://github.com/josh-silvas/dmux"
maintainer: "Josh Silvas <[email protected]>"
description: "DMux is a cli tool with ssh functionality for assist Network Engineering teams."
license: "Apache 2.0"
formats:
- "deb"
bindir: "/usr/local/bin"
epoch: "1"
builds:
- id: "dmux-osx-amd64"
goos:
- "darwin"
targets:
- "darwin_amd64"
main: "cmd/main.go"
ldflags: "-s -w -X main.buildVersion={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
binary: "dmux"
env:
- "CGO_ENABLED=1"
- id: "dmux-osx-arm64"
goos:
- "darwin"
targets:
- "darwin_arm64"
main: "cmd/main.go"
ldflags: "-s -w -X main.buildVersion={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
binary: "dmux"
env:
- "CGO_ENABLED=1"
- id: "dmux-linux-amd64"
goos:
- "linux"
targets:
- "linux_amd64"
main: "cmd/main.go"
ldflags: "-s -w -X main.buildVersion={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -linkmode external -extldflags -static"
binary: "dmux"
env:
- "CC=x86_64-linux-musl-gcc"
- "CXX=x86_64-linux-musl-g++"
- "CGO_ENABLED=1"
- id: "dmux-windows-amd64"
goos:
- "windows"
targets:
- "windows_amd64"
main: "cmd/main.go"
ldflags: "-s -w -X main.buildVersion={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}"
binary: "dmux"
env:
- "CGO_ENABLED=1"
archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format: "tar.gz"
files:
- "LICENSE*"
- "README*"
- "CHANGELOG*"
checksum:
name_template: "checksums.txt"
changelog:
filters:
exclude:
- "^docs:"
- "^test:"
sort: "asc"
dist: "build"
env_files:
github_token: "~/.config/goreleaser/github_com_token"