-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
78 lines (78 loc) · 2.03 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
project_name: erp
before:
hooks:
- go mod tidy
dist: release
source:
enabled: true
name_template: '{{ .ProjectName }}-{{ .Tag }}-source'
checksum:
name_template: '{{ .ProjectName }}-{{ .Tag }}-checksums.txt'
builds:
- id: erpctl
env:
- CGO_ENABLED=0
main: ./cmd/client/main.go
binary: erpctl
ldflags:
- -s -w
- -X "github.com/bhojpur/erp/pkg/version.Version={{.Version}}-{{.ShortCommit}}"
- -X "github.com/bhojpur/erp/pkg/version.BuildTime={{ time "2006-01-02 15:04:05 MST" }}"
- -X "github.com/bhojpur/erp/pkg/version.BuildCommit={{ .FullCommit }}"
- id: erpsvr
env:
- CGO_ENABLED=0
main: ./cmd/server/main.go
binary: erpsvr
ldflags:
- -s -w
- -X "github.com/bhojpur/erp/pkg/version.Version={{.Version}}-{{.ShortCommit}}"
- -X "github.com/bhojpur/erp/pkg/version.BuildTime={{ time "2006-01-02 15:04:05 MST" }}"
- -X "github.com/bhojpur/erp/pkg/version.BuildCommit={{ .FullCommit }}"
archives:
- id: erpctl
files:
- "none*"
format: binary # this removes the tar of the archives, leaving the binaries alone
name_template: erpctl-{{ .Tag }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}
replacements:
darwin: Darwin
linux: Linux
386: i386
amd64: x86_64
builds:
- erpctl
- id: erpsvr
files:
- "none*"
format: binary # this removes the tar of the archives, leaving the binaries alone
name_template: erpsvr-{{ .Tag }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}
builds:
- erpsvr
replacements:
darwin: Darwin
linux: Linux
386: i386
amd64: x86_64
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
release:
prerelease: auto
header: |
Bhojpur ERP is a high performance enterprise resource planning system driving many distributed applications
and services running over the Bhojpur.NET Platform.
dockers:
- goos: linux
goarch: amd64
goarm: ''
dockerfile: Dockerfile
image_templates:
- "ghcr.io/bhojpur/erp:{{ .Tag }}"
extra_files:
- README.md