-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser.yml
43 lines (43 loc) · 1.07 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
version: 2
# This is an example goreleaser.yaml file with some defaults.
# Make sure to check the documentation at http://goreleaser.com
# env:
# - CGO_ENABLED=1
before:
hooks:
- make go.lint
- make go.test
builds:
- id: build
mod_timestamp: '{{ .CommitTimestamp }}'
hooks:
post:
- cmd: bash -c "chmod +x {{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
dir: "{{ dir .Path }}"
flags:
- -trimpath #removes all file system paths from the compiled executable
ldflags:
- '-s -w -X main.version={{ .Version }} -X main.commit={{ .Commit }}'
goos:
- linux
- darwin
goarch:
- arm64
- amd64
binary: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}'
no_unique_dist_dir: true
archives:
- id: archive
format: zip
files:
- none*
name_template: '{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}'
# checksum:
# name_template: 'checksums.txt'
release:
disable: true
# extra_files:
# - glob: ./docs.zip
# disable: true
changelog:
disable: true