-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser-for-linux.yml
57 lines (55 loc) · 1.11 KB
/
.goreleaser-for-linux.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
# Make sure to check the documentation at http://goreleaser.com
# ---------------------------
# General
# ---------------------------
---
before:
hooks:
- make all
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
filters:
exclude:
- '^.github:'
- '^.vscode:'
- '^docs:'
- '^test:'
# ---------------------------
# Builder
# ---------------------------
builds:
- id: linux-build
main: ./cmd/
binary: alert-system
goos:
- linux
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w -X main.version={{.Version}}
overrides:
- goos: linux
goarch: arm64
env:
- CC=aarch64-linux-gnu-gcc
# ---------------------------
# Archives + Checksums
# ---------------------------
archives:
- id: alert_system_linux
builds:
- linux-build
name_template: "alert_system_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
wrap_in_directory: false
format: zip
files:
- LICENSE
checksum:
name_template: "checksums.txt"
algorithm: sha256