-
Notifications
You must be signed in to change notification settings - Fork 500
/
.goreleaser.yml
88 lines (78 loc) · 2.08 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
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
- go generate ./...
snapshot:
name_template: '{{ .Version }}'
checksum:
name_template: 'checksums.txt'
changelog:
skip: true
builds:
- id: client
main: cmd/client/main.go
binary: bin/egctl
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
ldflags:
- -s -w
- -X github.com/megaease/easegress/v2/pkg/version.RELEASE={{ .Tag }}
- -X github.com/megaease/easegress/v2/pkg/version.COMMIT={{.Commit}}
- -X github.com/megaease/easegress/v2/pkg/version.REPO=megaease/easegress
- id: builder
main: cmd/builder/main.go
binary: bin/egbuilder
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
ldflags:
- -s -w
- -X github.com/megaease/easegress/v2/pkg/version.RELEASE={{ .Tag }}
- -X github.com/megaease/easegress/v2/pkg/version.COMMIT={{.Commit}}
- -X github.com/megaease/easegress/v2/pkg/version.REPO=megaease/easegress
- id: server
main: cmd/server/main.go
binary: bin/easegress-server
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
ldflags:
- -s -w
- -X github.com/megaease/easegress/v2/pkg/version.RELEASE={{ .Tag }}
- -X github.com/megaease/easegress/v2/pkg/version.COMMIT={{.Commit}}
- -X github.com/megaease/easegress/v2/pkg/version.REPO=megaease/easegress
archives:
- id: easegress
format: tar.gz
name_template: "{{ .ProjectName }}-v{{ .Version }}-{{ .Os }}-{{ .Arch }}"
files:
- none*
release:
github:
owner: megaease
name: easegress
name_template: "{{ .ProjectName }}-v{{ .Version }}"
dockers:
- image_templates:
- megaease/easegress:latest
- megaease/easegress:{{ .Tag }}
- megaease/easegress:easemesh
- megaease/easegress:server-sidecar
goos: linux
goarch: amd64
ids:
- client
- server
- builder
dockerfile: build/package/Dockerfile.goreleaser
extra_files:
- build/package/entrypoint.sh