forked from TheThingsNetwork/lorawan-stack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
187 lines (175 loc) · 4.22 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
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
project_name: lorawan-stack
changelog:
skip: true
release:
prerelease: auto
builds:
- id: stack
main: ./cmd/ttn-lw-stack
binary: ttn-lw-stack
ldflags:
- -s
- -w
- -X go.thethings.network/lorawan-stack/pkg/version.BuildDate={{.Date}}
- -X go.thethings.network/lorawan-stack/pkg/version.GitCommit={{.ShortCommit}}
- -X go.thethings.network/lorawan-stack/pkg/version.TTN={{.Version}}
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- 386
- amd64
- arm
- arm64
goarm:
- 6
- 7
- id: cli
main: ./cmd/ttn-lw-cli
binary: ttn-lw-cli
ldflags:
- -s
- -w
- -X go.thethings.network/lorawan-stack/pkg/version.BuildDate={{.Date}}
- -X go.thethings.network/lorawan-stack/pkg/version.GitCommit={{.ShortCommit}}
- -X go.thethings.network/lorawan-stack/pkg/version.TTN={{.Version}}
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
- windows
goarch:
- 386
- amd64
- arm
- arm64
goarm:
- 6
- 7
archives:
- id: stack
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
builds:
- cli
- stack
files:
- LICENSE
- README.md
- doc/**/*
- docker-compose.yml
- public/**/*
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
- id: cli
name_template: "{{ .ProjectName }}-cli_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
builds:
- cli
files:
- LICENSE
- README.md
- doc/**/*
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
nfpms:
- id: stack
builds:
- cli
- stack
vendor: The Things Network
homepage: https://www.thethingsnetwork.org
maintainer: The Things Network Foundation <[email protected]>
description: The Things Stack for LoRaWAN
license: Apache 2.0
formats:
- deb
- rpm
recommends:
- redis
- cockroach
files:
"public/**/*": "/srv/ttn-lorawan/public"
snapcrafts:
- id: stack
builds:
- cli
- stack
name: ttn-lw-stack
summary: The Things Stack for LoRaWAN
description: The Things Stack for LoRaWAN
grade: stable
confinement: strict
publish: true
apps:
ttn-lw-stack:
plugs: [ home, network, network-bind ]
ttn-lw-cli:
plugs: [ home, network, network-bind ]
brews:
- name: ttn-lw-stack
ids:
- stack
github:
owner: TheThingsNetwork
name: homebrew-lorawan-stack
commit_author:
name: ttn-ci
email: [email protected]
homepage: https://www.thethingsnetwork.org
description: The Things Stack for LoRaWAN
conflicts:
- ttn-lw-cli
skip_upload: auto
install: |
bin.install "ttn-lw-cli"
libexec.install %w[ttn-lw-stack public doc]
env = {
:TTN_LW_HTTP_STATIC_SEARCH_PATH => libexec/"public"
}
(bin/"ttn-lw-stack").write_env_script libexec/"ttn-lw-stack", env
- name: ttn-lw-cli
ids:
- cli
github:
owner: TheThingsNetwork
name: homebrew-lorawan-stack
commit_author:
name: ttn-ci
email: [email protected]
homepage: https://www.thethingsnetwork.org
description: CLI of The Things Stack for LoRaWAN
conflicts:
- ttn-lw-stack
skip_upload: auto
install: |
bin.install "ttn-lw-cli"
libexec.install doc
blobs:
- provider: s3
# NOTE: GoReleaser documentation says that bucket is a template, but it's not.
bucket: the-things-stack-releases
ids:
- stack
- cli
folder: "{{ .Version }}"
dockers:
- goos: linux
goarch: amd64
binaries:
- ttn-lw-cli
- ttn-lw-stack
image_templates:
- '{{ or (index .Env "DOCKER_IMAGE") "lorawan-stack" }}:latest'
- '{{ or (index .Env "DOCKER_IMAGE") "lorawan-stack" }}:{{ .Major }}'
- '{{ or (index .Env "DOCKER_IMAGE") "lorawan-stack" }}:{{ .Major }}.{{ .Minor }}'
- '{{ or (index .Env "DOCKER_IMAGE") "lorawan-stack" }}:{{ .Version }}'
skip_push: auto
extra_files:
- public