forked from hetznercloud/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
76 lines (68 loc) · 1.44 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
builds:
- id: "hcloud-build"
main: ./cmd/hcloud/main.go
binary: hcloud
ldflags:
- -w -X github.com/hetznercloud/cli/cli.Version={{.Version}}
env:
- CGO_ENABLED=0
goos:
- freebsd
- windows
- linux
goarch:
- amd64
- arm
- arm64
- 386
goarm:
- 6
- 7
- id: "hcloud-macos-build"
main: ./cmd/hcloud/main.go
binary: hcloud
ldflags:
- -w -X github.com/hetznercloud/cli/cli.Version={{.Version}}
env:
- CGO_ENABLED=0
goos:
- darwin
goarch:
- amd64
before:
hooks:
- go mod tidy
checksum:
name_template: "checksums.txt"
algorithm: sha256
release:
draft: true
name_template: "hcloud v{{.Version}}"
signs:
- ids:
- hcloud-macos-build
cmd: gon
args:
- -log-json
- gon.hcl
artifacts: all
signature: "hcloud-macos-amd64.zip"
id: hcloud-macos-sign
- artifacts: all
signature: "${artifact}.sig"
id: hcloud-sign
ids:
- hcloud-build
args: ["--batch", "-u", "[email protected]", "--pinentry-mode", "loopback", "--output", "${signature}", "--detach-sign", "${artifact}"]
archives:
- id: hcloud-archive
builds:
- hcloud-build
name_template: "{{ .Binary }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- CHANGES.md
- README.md