-
-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy path.goreleaser.yml
More file actions
129 lines (122 loc) · 3.36 KB
/
.goreleaser.yml
File metadata and controls
129 lines (122 loc) · 3.36 KB
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
122
123
124
125
126
127
128
129
version: 2
signs:
- artifacts: checksum
project_name: spot
dist: .bin
builds:
- id: spot
binary: "spot"
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm
- arm64
ignore:
- goos: freebsd
goarch: arm
- goos: freebsd
goarch: arm64
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
dir: cmd/spot
ldflags: "-s -w -X main.revision={{.Tag}}-{{.ShortCommit}}-{{.CommitDate}}"
- id: secrets
binary: "spot-secrets"
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm
- arm64
ignore:
- goos: freebsd
goarch: arm
- goos: freebsd
goarch: arm64
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
dir: cmd/secrets
ldflags: "-s -w -X main.revision={{.Tag}}-{{.ShortCommit}}-{{.CommitDate}}"
archives:
- id: spot
name_template: >-
{{.ProjectName}}_
{{- .Tag}}_
{{- if eq .Os "darwin"}}macos
{{- else if eq .Os "windows"}}win
{{- else}}{{.Os}}{{end}}_
{{- if eq .Arch "amd64"}}x86_64
{{- else if eq .Arch "386"}}i386
{{- else}}{{.Arch}}{{end}}
format_overrides:
- goos: windows
formats: [zip]
files:
- LICENSE
- README.md
- spot.1
- completions/*
brews:
-
name: spot
repository:
owner: umputun
name: homebrew-apps
branch: master
directory: Formula
commit_author:
name: umputun
email: umputun@gmail.com
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://spotctl.com/"
description: "Spot (aka spotctl) is a powerful and easy-to-use tool for effortless deployment and configuration management."
license: "MIT"
extra_install: |
bash_completion.install "completions/spot.bash" => "spot"
bash_completion.install "completions/spot-secrets.bash" => "spot-secrets"
zsh_completion.install "completions/spot.zsh" => "_spot"
zsh_completion.install "completions/spot-secrets.zsh" => "_spot-secrets"
fish_completion.install "completions/spot.fish" => "spot.fish"
fish_completion.install "completions/spot-secrets.fish" => "spot-secrets.fish"
nfpms:
- id: spot
package_name: spot
file_name_template: "{{.ProjectName}}_{{.Tag}}_{{.Os}}_{{.Arch}}"
vendor: Umputun
homepage: https://spot.umputun.dev
maintainer: Umputun <umputun@gmail.com>
description: A collection of tools for the effortless deployment, configuration, and management of secrets
license: MIT
formats:
- deb
- rpm
- apk
bindir: /usr/bin
epoch: 1
release: 1
contents:
- src: completions/spot.bash
dst: /usr/share/bash-completion/completions/spot
- src: completions/spot-secrets.bash
dst: /usr/share/bash-completion/completions/spot-secrets
- src: completions/spot.zsh
dst: /usr/share/zsh/vendor-completions/_spot
- src: completions/spot-secrets.zsh
dst: /usr/share/zsh/vendor-completions/_spot-secrets
- src: completions/spot.fish
dst: /usr/share/fish/vendor_completions.d/spot.fish
- src: completions/spot-secrets.fish
dst: /usr/share/fish/vendor_completions.d/spot-secrets.fish