-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy path.goreleaser.yml
More file actions
80 lines (72 loc) · 1.69 KB
/
.goreleaser.yml
File metadata and controls
80 lines (72 loc) · 1.69 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
version: 2
before:
hooks:
- go mod tidy
builds:
- id: docker-dash
main: ./cmd/docker-dash
binary: docker-dash
env:
- CGO_ENABLED=0
ldflags:
- "-s -w"
- -X main.Version={{.Tag}}
goos:
- linux
- windows
goarch:
- amd64
- arm64
ignore:
- goos: windows
goarch: arm64
- id: docker-dash-darwin
main: ./cmd/docker-dash
binary: docker-dash
env:
- CGO_ENABLED=1
ldflags:
- "-s -w"
- -X main.Version={{.Tag}}
goos:
- darwin
goarch:
- amd64
- arm64
archives:
- formats:
- binary
name_template: "docker-dash_{{ .Tag }}_{{ .Os }}-{{ .Arch }}{{if .Arm}}_{{.Arm}}{{end}}"
snapshot:
version_template: "{{ incpatch .Version }}-devel"
checksum:
name_template: "checksums.txt"
changelog:
sort: asc
use: github
filters:
exclude:
- "^test:"
- "^chore"
- "merge conflict"
- Merge pull request
- Merge remote-tracking branch
- Merge branch
- go mod tidy
homebrew_casks:
- name: docker-dash
binaries:
- docker-dash
repository:
owner: GustavoCaso
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
homepage: "https://github.com/GustavoCaso/docker-dash"
description: "Terminal UI dashboard for managing Docker containers, images, volumes, and networks"
hooks:
post:
install: |
if OS.mac?
binary_name = Hardware::CPU.arm? ? "docker-dash_v#{version}_darwin-arm64" : "docker-dash_v#{version}_darwin-amd64"
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/#{binary_name}"]
end