-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
87 lines (78 loc) · 2.32 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
# `go tool` configuration that is used by `go build`.
builds:
- id: "gtee"
main: "."
binary: "gtee"
ldflags:
- "-s" # Omit the symbol table and debug information.
- "-w" # Omit the DWARF symbol table.
buildmode: ""
env:
- CGO_ENABLED=0
goos:
- "linux"
- "darwin"
goarch:
- "amd64"
- "arm64"
goamd64:
- v1
goarm64:
- v8.0
ignore:
- goos: "linux"
goarch: "arm64"
- goos: "darwin"
goarch: "amd64"
tool: "go"
command: "build"
mod_timestamp: "{{ .CommitTimestamp }}"
# Build every single binary combination under ./dist. No subdirectories.
no_unique_dist_dir: true
# Function main is at root, no need to check subdirs.
no_main_check: true
# Main dir that contains Go code. It's the same that is used with 'go build' or other Go commands.
dir: "."
builder: "go"
# Configuration for each binary archive.
archives:
- id: gtee-archives
builds:
- gtee
format: "tar.gz"
# 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 }}{{ .Arch }}{{ end }}_{{ .Version }}
# When the archive is unarchived, everything is extraced under a directory with the same name as archive.
wrap_in_directory: true
# File stats which is applied to all binaries.
builds_info:
group: root
owner: root
mode: 0644
# Additional files (Defaults are used except CHANGELOG to explicitly show what goes into an archive).
files:
- LICENSE
- README.md
# Disables the binary count check.
allow_different_binary_count: true
changelog:
# Enable generating a changelog on each release.
disable: false
# The changelog generation implementation. Extracts information from `git log`.
use: git
# Changelog format.
format: "{{.SHA}}: {{.Message}} (@{{.AuthorUsername}})"
sort: "desc"
# Exclude commits which matches the regexp listed below.
filters:
exclude:
- "^docs:"
- "^test:"
release:
footer: >-
---
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).