-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
75 lines (72 loc) · 2.16 KB
/
.goreleaser.yaml
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
builds:
- id: cloudcored
main: ./cmd/cloudcored
binary: cloudcored
ldflags:
- -s -w -X github.com/clarkmcc/cloudcore/pkg/version.Version={{.Version}} -X github.com/clarkmcc/cloudcore/pkg/version.Hash={{.Commit}} -X github.com/clarkmcc/cloudcore/pkg/version.GOARM={{.Env.GOARM}}
env:
- CGO_ENABLED=0
targets:
# - windows_amd64
# - windows_arm64
- darwin_amd64
- darwin_arm64
- linux_amd64
- linux_arm64
- linux_arm_5
- id: cloudcore-server
main: ./cmd/cloudcore-server
binary: cloudcore
ldflags:
- -s -w -X github.com/clarkmcc/cloudcore/pkg/version.Version={{.Version}} -X github.com/clarkmcc/cloudcore/pkg/version.Hash={{.Commit}}
env:
- CGO_ENABLED=0
targets:
# - windows_amd64
# - windows_arm64
- darwin_amd64
- darwin_arm64
- linux_amd64
- linux_arm64
- linux_arm_5
nfpms:
- id: cloudcored-linux
package_name: cloudcored
builds:
- cloudcored
file_name_template: >-
{{ .PackageName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}_{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
vendor: cloudcore
homepage: https://cloudcore.clarkmccauley.com/
maintainer: Clark McCauley
license: MIT
formats:
- deb
- apk
- rpm
scripts:
preinstall: scripts/linux/preinstall.sh
# todo: Setup systemd service
# postinstall: scripts/linux/postinstall.sh
# preremove: scripts/linux/preremove.sh
# postremove: scripts/linux/postremove.sh
# Whether to enable the size reporting or not.
dockers:
# Server
- id: cloudcore-server
image_templates:
- ghcr.io/clarkmcc/cloudcore
ids:
- cloudcore-server
goos: linux
goarch: amd64
dockerfile: ./cmd/cloudcore-server/Dockerfile
archives:
- id: cloudcored-archive
builds:
- cloudcored
wrap_in_directory: false
name_template: >-
{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}_{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}
format: binary
report_sizes: true