-
Notifications
You must be signed in to change notification settings - Fork 309
/
.goreleaser.snapshot.yml
94 lines (88 loc) · 2.58 KB
/
.goreleaser.snapshot.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
project_name: lorawan-stack
changelog:
skip: true
release:
disable: true
builds:
- id: stack
main: ./cmd/ttn-lw-stack
binary: ttn-lw-stack
ldflags:
- -s
- -w
- -X go.thethings.network/lorawan-stack/v3/pkg/version.BuildDate={{.Date}}
- -X go.thethings.network/lorawan-stack/v3/pkg/version.GitCommit={{.ShortCommit}}
- -X go.thethings.network/lorawan-stack/v3/pkg/version.TTN={{ trimprefix .Version "v" }}
env:
- CGO_ENABLED=0
goos: [linux]
goarch: [amd64, arm64]
- id: cli
main: ./cmd/ttn-lw-cli
binary: ttn-lw-cli
ldflags:
- -s
- -w
- -X go.thethings.network/lorawan-stack/v3/pkg/version.BuildDate={{.Date}}
- -X go.thethings.network/lorawan-stack/v3/pkg/version.GitCommit={{.ShortCommit}}
- -X go.thethings.network/lorawan-stack/v3/pkg/version.TTN={{ trimprefix .Version "v" }}
env:
- CGO_ENABLED=0
goos: [linux]
goarch: [amd64, arm64]
dockers:
- goos: linux
goarch: amd64
dockerfile: Dockerfile
use: buildx
ids:
- cli
- stack
build_flag_templates:
- --platform=linux/amd64
- '--label=org.opencontainers.image.created={{.Date}}'
- '--label=org.opencontainers.image.vendor=The Things Network Foundation'
- '--label=org.opencontainers.image.title=The Things Stack'
- '--label=org.opencontainers.image.url=https://www.thethingsindustries.com/docs'
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
image_templates:
- 'lorawan-stack-dev:{{ .FullCommit }}-amd64'
skip_push: true
extra_files:
- data
- public
- goos: linux
goarch: arm64
dockerfile: Dockerfile
use: buildx
ids:
- cli
- stack
build_flag_templates:
- --platform=linux/arm64
- '--label=org.opencontainers.image.created={{.Date}}'
- '--label=org.opencontainers.image.vendor=The Things Network Foundation'
- '--label=org.opencontainers.image.title=The Things Stack'
- '--label=org.opencontainers.image.url=https://www.thethingsindustries.com/docs'
- '--label=org.opencontainers.image.revision={{.FullCommit}}'
image_templates:
- 'lorawan-stack-dev:{{ .FullCommit }}-arm64'
skip_push: true
extra_files:
- data
- public
signs:
- artifacts: checksum
args:
- '--pinentry-mode=loopback'
- '--no-tty'
- '--passphrase-fd'
- '0'
- '--batch'
- '--output'
- '${signature}'
- '--detach-sign'
- '-u'
- '{{ .Env.SIGN_KEY_NAME }}'
- '${artifact}'
stdin_file: /tmp/gpg_passphrase