This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy path.goreleaser.yml
58 lines (51 loc) · 1.87 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
51
52
53
54
55
56
57
58
project_name: sherpa
builds:
-
binary: sherpa
env:
- CGO_ENABLED=0
# GOOS list to build in.
# For more info refer to https://golang.org/doc/install/source#environment
goos:
- darwin
- freebsd
- linux
# GOARCH to build in.
# For more info refer to https://golang.org/doc/install/source#environment
goarch:
- amd64
- 386
- arm
# Custom ldflags template.
# This is parsed with Golang template engine and the following variables
# are available:
# - Date
# - Commit
# - Tag
# - Version (Tag with the `v` prefix stripped)
# The default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}`
# Date format is `2006-01-02_15:04:05`
ldflags: -s -w -X github.com/jrasell/sherpa/pkg/build.Version={{.Version}} -X github.com/jrasell/sherpa/pkg/build.GitCommit={{.Commit}} -X github.com/jrasell/sherpa/pkg/build.BuildDate={{.Date}} -X github.com/jrasell/sherpa/pkg/build.GitBranch={{.Tag}} -X github.com/jrasell/sherpa/pkg/build.GitState={{.Tag}} -X github.com/jrasell/sherpa/pkg/build.GitSummary={{.Commit}}
main: ./cmd/
archive:
# You can change the name of the archive.
# This is parsed with Golang template engine and the following variables
# are available:
# - ProjectName
# - Tag
# - Version (Tag with the `v` prefix stripped)
# - Os
# - Arch
# - Arm (ARM version)
# The default is `{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}`
# Archive format. Valid options are `tar.gz`, `zip` and `binary`.
# If format is `binary` no archives are created and the binaries are instead uploaded directly.
# In that case name_template the below specified files are ignored.
# Default is `tar.gz`
format: binary
release:
# Repo in which the release will be created.
# Default is extracted from the origin remote URL.
github:
owner: jrasell
name: sherpa