forked from rai-project/rai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
69 lines (68 loc) · 1.26 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
project_name: rai
build:
main: ./main.go
binary: rai
goos:
- linux
- darwin
- windows
goarch:
- 386
- amd64
- arm
- arm64
- ppc64le
ignore:
- goos: darwin
goarch: 386
- goos: darwin
goarch: arm
- goos: linux
goarch: arm
goarm: 7
hooks:
pre: go generate
# post: ./script.sh
env:
- CGO_ENABLED=0
ldflags: >
-s -w
-extldflags \"-static\"
-X main.GitState=build
-X main.GitCommit={{.Commit}}
-X main.GitTag={{.Tag}}
-X main.BuildDate={{.Date}}
-X main.AppSecret=${APP_SECRET}
archive:
format: tar.gz
name_template: '{{ .Binary }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
files:
- LICENSE.TXT
# brew:
# github:
# owner: rai-project
# name: homebrew-tap
# folder: Formula
# homepage: *homepage
# description: *description
# dependencies:
# - git
# fpm:
# homepage: *homepage
# description: *description
# maintainer: Carlos Alexandro Becker <[email protected]>
# license: MIT
# vendor: GoReleaser
# formats:
# - deb
# dependencies:
# - git