forked from determined-ai/determined
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
111 lines (99 loc) · 3.06 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
project_name: determined
# The directory where all of the output files will be placed (relative to where GoReleaser is run,
# typically `build/`).
dist: dist
builds:
- id: master
dir: ../master
main: ./cmd/determined-master
binary: determined-master
env:
- CGO_ENABLED=0
ldflags:
- -X github.com/determined-ai/determined/master/version.Version={{.Env.VERSION}}
- -X github.com/determined-ai/determined/master/internal.DefaultSegmentMasterKey={{.Env.DET_SEGMENT_MASTER_KEY}}
- -X github.com/determined-ai/determined/master/internal.DefaultSegmentWebUIKey={{.Env.DET_SEGMENT_WEBUI_KEY}}
goos:
- linux
- darwin
goarch:
- amd64
- id: agent
dir: ../agent
main: ./cmd/determined-agent
binary: determined-agent
env:
- CGO_ENABLED=0
ldflags:
- -X github.com/determined-ai/determined/agent/version.Version={{.Env.VERSION}}
goos:
- linux
- darwin
goarch:
- amd64
archives:
- id: master
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
builds:
- master
wrap_in_directory: true
files:
- "share/determined/master/**/*"
- id: agent
name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
builds:
- agent
wrap_in_directory: true
# Official hack to include no other files: https://github.com/goreleaser/goreleaser/issues/602.
files:
- __nonexistent__*
nfpms:
- id: master
package_name: determined-master
maintainer: "Determined AI <[email protected]>"
bindir: /usr/bin
builds:
- master
config_files:
"packaging/master.yaml": "/etc/determined/master.yaml"
files:
"share/determined/master/**/*": "/usr/share/determined/master"
"packaging/determined-master.service": "/lib/systemd/system/determined-master.service"
file_name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
formats:
- deb
- rpm
overrides:
deb:
scripts:
postinstall: packaging/debian/master.postinst
preremove: packaging/debian/master.prerm
postremove: packaging/debian/master.postrm
- id: agent
package_name: determined-agent
maintainer: "Determined AI <[email protected]>"
bindir: /usr/bin
builds:
- agent
config_files:
"packaging/agent.yaml": "/etc/determined/agent.yaml"
files:
"packaging/determined-agent.service": "/lib/systemd/system/determined-agent.service"
file_name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
formats:
- deb
- rpm
overrides:
deb:
scripts:
postinstall: packaging/debian/agent.postinst
preremove: packaging/debian/agent.prerm
postremove: packaging/debian/agent.postrm
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}"
release:
github:
owner: determined-ai
name: determined