-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
50 lines (44 loc) · 1.42 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
project_name: sdk-test-harness
builds:
- env:
- CGO_ENABLED=0
main: .
binary: sdk-test-harness
goos:
- darwin
- linux
- windows
ignore: # Go 1.15+ doesn't support 32-bit Darwin
- goos: darwin
goarch: 386
release:
disable: true # this disables releasing *to GitHub*; it will still push to Docker
# (we want Releaser to be responsible for doing all the GitHub release manipulations)
snapshot:
# Allows you to change the name of the generated snapshot
#
# Note that some pipes require this to be semantic version compliant (nfpm,
# for example).
#
# Default is `{{ .Version }}-SNAPSHOT-{{.ShortCommit}}`.
name_template: '{{ if index .Env "LD_RELEASE_VERSION" }}{{ .Env.LD_RELEASE_VERSION }}{{ else }}0.0.0-SNAPSHOT{{ end }}'
archives:
-
format: tar.gz
format_overrides:
- goos: windows
format: zip
# Configure the archive names so they'll be easy for an install script to get from GitHub.
# For Linux & MacOS, we'll use the same OS and architecture strings that are returned by
# "uname -s" and "uname -m". So, for instance, the amd64 Linux build will be called
# "sdk-test-harness_Linux_x86_64.tar.gz".
name_template: >-
{{- .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
files:
- LICENSE.txt
- README.md
- CHANGELOG.md