forked from rollkit/omni
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
128 lines (111 loc) · 3.55 KB
/
.goreleaser.yaml
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
version: 1
project_name: omni
builds:
- id: halo
main: ./halo
binary: halo
env: [CGO_ENABLED=0]
goos: [linux, darwin]
goarch: [amd64, arm64]
ldflags:
- -s -w -X github.com/omni-network/omni/lib/buildinfo.version={{.Tag}}
- id: relayer
main: ./relayer
binary: relayer
env: [CGO_ENABLED=0]
goos: [linux, darwin]
goarch: [amd64, arm64]
ldflags:
- -s -w -X github.com/omni-network/omni/lib/buildinfo.version={{.Tag}}
- id: monitor
main: ./monitor
binary: monitor
env: [CGO_ENABLED=0]
goos: [linux, darwin]
goarch: [amd64, arm64]
- id: explorer-graphql
main: ./explorer/graphql
binary: graphql
env: [ CGO_ENABLED=0 ]
goos: [ linux, darwin ]
goarch: [ amd64, arm64 ]
- id: explorer-indexer
main: ./explorer/indexer
binary: indexer
env: [ CGO_ENABLED=0 ]
goos: [ linux, darwin ]
goarch: [ amd64, arm64 ]
- id: omni
main: ./cli/cmd/omni
binary: omni
env: [ CGO_ENABLED=0 ]
goos: [ linux, darwin ]
goarch: [ amd64, arm64 ]
ldflags:
- -s -w -X github.com/omni-network/omni/lib/buildinfo.version={{.Tag}}
- id: anvilproxy
main: ./e2e/anvilproxy
binary: anvilproxy
env: [ CGO_ENABLED=0 ]
goos: [ linux ]
goarch: [ amd64 ]
dockers:
- ids: [halo]
dockerfile: ./halo/Dockerfile
image_templates:
- omniops/halo:{{ .ShortCommit }}
- omniops/halo:{{ if .IsSnapshot }}main{{ else }}latest{{ end }}
- omniops/halo:{{ if .IsSnapshot }}main{{ else }}{{.Tag}}{{ end }}
- ids: [relayer]
dockerfile: ./relayer/Dockerfile
image_templates:
- omniops/relayer:{{ .ShortCommit }}
- omniops/relayer:{{ if .IsSnapshot }}main{{ else }}latest{{ end }}
- omniops/relayer:{{ if .IsSnapshot }}main{{ else }}{{.Tag}}{{ end }}
- ids: [monitor]
dockerfile: ./monitor/Dockerfile
image_templates:
- omniops/monitor:{{ .ShortCommit }}
- omniops/monitor:{{ if .IsSnapshot }}main{{ else }}latest{{ end }}
- omniops/monitor:{{ if .IsSnapshot }}main{{ else }}{{.Tag}}{{ end }}
- ids: [anvilproxy]
dockerfile: ./e2e/anvilproxy/Dockerfile
image_templates:
- omniops/anvilproxy:{{ .ShortCommit }}
- omniops/anvilproxy:{{ if .IsSnapshot }}main{{ else }}latest{{ end }}
- omniops/anvilproxy:{{ if .IsSnapshot }}main{{ else }}{{.Tag}}{{ end }}
- ids: [explorer-graphql]
dockerfile: ./explorer/graphql/Dockerfile
image_templates:
- omniops/explorer-graphql:{{ .ShortCommit }}
- omniops/explorer-graphql:{{ if .IsSnapshot }}main{{ else }}latest{{ end }}
- omniops/explorer-graphql:{{ if .IsSnapshot }}main{{ else }}{{.Tag}}{{ end }}
- ids: [explorer-indexer]
dockerfile: ./explorer/indexer/Dockerfile
image_templates:
- omniops/explorer-indexer:{{ .ShortCommit }}
- omniops/explorer-indexer:{{ if .IsSnapshot }}main{{ else }}latest{{ end }}
- omniops/explorer-indexer:{{ if .IsSnapshot }}main{{ else }}{{.Tag}}{{ end }}
archives:
- format: tar.gz
allow_different_binary_count: true # Required since anvilproxy only has linux-amd64
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
release:
draft: true
replace_existing_draft: true
prerelease: auto
mode: append
changelog:
sort: asc
filters:
exclude:
- "^docs"
- "^test"
- "^ci"