1
- # This is an example .goreleaser.yml file with some sensible defaults.
2
- # Make sure to check the documentation at https://goreleaser.com
1
+ project_name : discovery-engine
2
+
3
3
before :
4
4
hooks :
5
5
# You may remove this if you don't use go modules.
6
6
- go mod tidy
7
7
# you may remove this if you don't need go generate
8
8
- go generate ./...
9
+
9
10
builds :
11
+ - binary : discovery-engine
12
+ id : discovery-engine
10
13
- env :
11
14
- CGO_ENABLED=1
12
15
goos :
@@ -15,13 +18,62 @@ builds:
15
18
# - darwin
16
19
goarch :
17
20
- amd64
21
+
18
22
archives :
23
+ - id : " discovery-engine"
24
+ builds :
25
+ - " discovery-engine"
26
+ name_template : " {{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
27
+ files :
28
+ - src : ./conf/local-file.yaml
29
+ dst : /opt/discovery-engine/local-file.yaml
30
+ strip_parent : true
31
+ - src : ./packaging/discovery-engine.service
32
+ dst : /usr/lib/systemd/system
33
+ strip_parent : true
19
34
- replacements :
20
35
darwin : Darwin
21
36
linux : Linux
22
37
windows : Windows
23
38
386 : i386
24
39
amd64 : x86_64
40
+
41
+ nfpms :
42
+ - id : " discovery-engine"
43
+ builds :
44
+ - " discovery-engine"
45
+ formats :
46
+ - deb
47
+ - rpm
48
+ replaces :
49
+ - discovery-engine
50
+ maintainer : " Ankur Kothiwal <ankur.kothiwal@accuknox.com>"
51
+ description : |
52
+ Auto policy discovery engine
53
+ file_name_template : " {{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
54
+ bindir : /
55
+ contents :
56
+ - dst : /opt/discovery-engine
57
+ type : dir
58
+ - src : ./conf/local-file.yaml
59
+ dst : /opt/discovery-engine/local-file.yaml
60
+ type : config
61
+ - src : ./packaging/discovery-engine.service
62
+ dst : /usr/lib/systemd/system/discovery-engine.service
63
+ type : config
64
+ - src : /opt/src/discovery-engine
65
+ dst : /usr/local/bin/discovery-engine
66
+ type : symlink
67
+ scripts :
68
+ postinstall : packaging/post-install.sh
69
+ overrides :
70
+ deb :
71
+ dependencies :
72
+ - make
73
+ rpm :
74
+ dependencies :
75
+ - make
76
+
25
77
checksum :
26
78
name_template : ' checksums.txt'
27
79
snapshot :
0 commit comments